diff --git a/tests/test-timespec.c b/tests/test-timespec.c index de8e29d..f5a43f5 100644 --- a/tests/test-timespec.c +++ b/tests/test-timespec.c @@ -65,7 +65,7 @@ valid (struct timespec a) static int sign (int i) { - return i < 0 ? -1 : 0 < i; + return i < 0 ? -1 : 0 < i ? 1 : 0; } static int