diff options
| -rw-r--r-- | tests/test_atomic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_atomic.c b/tests/test_atomic.c index 86fede1..b063a92 100644 --- a/tests/test_atomic.c +++ b/tests/test_atomic.c @@ -148,7 +148,7 @@ void * test_and_set_thr(void * id) if (locked_counter != 1) { fprintf(stderr, "Test and set failure 1, counter = %ld, id = %d\n", - locked_counter, (int)(AO_PTRDIFF_T)id); + (long)locked_counter, (int)(AO_PTRDIFF_T)id); abort(); } locked_counter *= 2; @@ -158,7 +158,7 @@ void * test_and_set_thr(void * id) if (locked_counter != 1) { fprintf(stderr, "Test and set failure 2, counter = %ld, id = %d\n", - locked_counter, (int)(AO_PTRDIFF_T)id); + (long)locked_counter, (int)(AO_PTRDIFF_T)id); abort(); } --locked_counter; |
