* tests/test_atomic.c (test_and_set_thr): Add missing casts to long
for locked_counter (which is unsigned long) to match printf format
specifier.
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;
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;