projects
/
platform
/
upstream
/
libatomic_ops.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7749794
)
Fix variable type to match printf format specifier in test_stack
author
Ivan Maidanski
<ivmai@mail.ru>
Mon, 8 Oct 2012 20:06:19 +0000
(
00:06
+0400)
committer
Ivan Maidanski
<ivmai@mail.ru>
Mon, 8 Oct 2012 20:18:20 +0000
(22:18 +0200)
* 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
patch
|
blob
|
history
diff --git
a/tests/test_stack.c
b/tests/test_stack.c
index
b5141da
..
764b358
100644
(file)
--- a/
tests/test_stack.c
+++ b/
tests/test_stack.c
@@
-137,7
+137,7
@@
volatile AO_t ops_performed = 0;
void * run_one_test(void * arg)
{
list_element * t[MAX_NTHREADS + 1];
-
long index = (long
)arg;
+
int index = (int)(size_t
)arg;
int i;
int j = 0;