From 34ab0736ebf90068ef4856793f16a9030d3e0197 Mon Sep 17 00:00:00 2001 From: Gabriele Svelto Date: Sun, 15 Apr 2012 14:46:46 +0200 Subject: Fixed a warning in the timeo test Fixed a couple of mixed signed/unsigned comparison which in conjunction with -Werror prevented compilation of the test. Signed-off-by: Gabriele Svelto --- tests/timeo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/timeo.cpp b/tests/timeo.cpp index 2281556..bc73eec 100644 --- a/tests/timeo.cpp +++ b/tests/timeo.cpp @@ -66,7 +66,7 @@ int XS_TEST_MAIN () assert (rc == -1); assert (xs_errno () == EAGAIN); unsigned long elapsed = xs_stopwatch_stop (watch) / 1000; - time_assert (elapsed, timeout); + time_assert (elapsed, (unsigned long) timeout); // Check whether connection during the wait doesn't distort the timeout. timeout = 2000; @@ -79,7 +79,7 @@ int XS_TEST_MAIN () assert (rc == -1); assert (xs_errno () == EAGAIN); elapsed = xs_stopwatch_stop (watch) / 1000; - time_assert (elapsed, timeout); + time_assert (elapsed, (unsigned long) timeout); thread_join (thread); // Check that timeouts don't break normal message transfer. -- cgit v1.2.3