From 1b3c02cfe3214e4d91314d4eec2ca9d28aa58cc3 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Tue, 9 Oct 2012 00:06:19 +0400 Subject: [PATCH] Fix variable type to match printf format specifier in test_stack * tests/test_stack.c (run_one_test): Change type of "index" local variable from long to int to match printf format specifier (when VERBOSE defined); cast from "arg" pointer to integer via size_t (to avoid 64-bit compiler warning). --- tests/test_stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stack.c b/tests/test_stack.c index ff18fa6..3df4b6a 100644 --- a/tests/test_stack.c +++ b/tests/test_stack.c @@ -169,7 +169,7 @@ volatile AO_t ops_performed = 0; #endif { list_element * t[MAX_NTHREADS + 1]; - long index = (long)arg; + int index = (int)(size_t)arg; int i; int j = 0; -- 2.40.0