diff --git a/test/dtor_queue_all.c b/test/dtor_queue_all.c index 0be6acad3..9dc220039 100644 --- a/test/dtor_queue_all.c +++ b/test/dtor_queue_all.c @@ -23,13 +23,13 @@ main(void) r = __MCF_dtor_queue_push(&queue, &elem); assert(r == 0); - fprintf(stderr, "push: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "push: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); } for(intptr_t k = 1000; k >= 1; --k) { r = __MCF_dtor_queue_pop(&elem, &queue, __MCF_nullptr); assert(r == 0); - fprintf(stderr, "pop: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "pop: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); assert(elem.__this == (void*) k); assert(elem.__dso == (void*) (k % 10)); diff --git a/test/dtor_queue_dso.c b/test/dtor_queue_dso.c index 8dcc2828f..b355ca44c 100644 --- a/test/dtor_queue_dso.c +++ b/test/dtor_queue_dso.c @@ -23,7 +23,7 @@ main(void) r = __MCF_dtor_queue_push(&queue, &elem); assert(r == 0); - fprintf(stderr, "push: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "push: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); } @@ -31,7 +31,7 @@ main(void) for(intptr_t k = 99; k >= 0; --k) { r = __MCF_dtor_queue_pop(&elem, &queue, (void*) m); assert(r == 0); - fprintf(stderr, "pop: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "pop: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); assert(elem.__this == (void*) (k * 10 + m)); assert(elem.__dso == (void*) m); diff --git a/test/dtor_queue_remove.c b/test/dtor_queue_remove.c index da8469a09..eddfa1251 100644 --- a/test/dtor_queue_remove.c +++ b/test/dtor_queue_remove.c @@ -23,7 +23,7 @@ main(void) r = __MCF_dtor_queue_push(&queue, &elem); assert(r == 0); - fprintf(stderr, "push: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "push: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); } @@ -39,7 +39,7 @@ main(void) for(intptr_t k = 99; k >= 0; --k) { r = __MCF_dtor_queue_pop(&elem, &queue, (void*) m); assert(r == 0); - fprintf(stderr, "pop: %d, size = %d\n", (int) elem.__this, (int) queue.__size); + fprintf(stderr, "pop: %d, size = %d\n", (int)(intptr_t) elem.__this, (int)(intptr_t) queue.__size); assert(elem.__this == (void*) (k * 10 + m)); assert(elem.__dso == (void*) m);