From 3886f95485795ecfb9fa9c396d0a2eab4217b266 Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 19 Nov 2005 04:45:15 +0000 Subject: o Include o Make this ILP32/LP64 clean: cast pointers to long. --- lib/libpthread/test/guard_b.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/libpthread/test/guard_b.c') diff --git a/lib/libpthread/test/guard_b.c b/lib/libpthread/test/guard_b.c index 42bf4ed..2e27031 100644 --- a/lib/libpthread/test/guard_b.c +++ b/lib/libpthread/test/guard_b.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -69,9 +70,10 @@ recurse(void *args) * hand tweaking, so just print a warning rather than aborting. */ if (parms->top - (void *)&top != FRAME_SIZE * parms->cur) { - fprintf(stderr, "Stack size (%d) != expected (%d), frame %d\n", - parms->top - (void *)&top, FRAME_SIZE * parms->cur, - parms->cur); + fprintf(stderr, + "Stack size (%ld) != expected (%ld), frame %ld\n", + (long)parms->top - (long)&top, + (long)(FRAME_SIZE * parms->cur), (long)parms->cur); } parms->cur++; -- cgit v1.1