From ca51ecc2f17ca1745d1ee9c89490dd9078d181f1 Mon Sep 17 00:00:00 2001 From: marcel Date: Wed, 4 Jun 2003 20:36:08 +0000 Subject: Make this compile without warnings on 64-bit architectures: In recurse(), cast the pointer difference to int to match the format. The difference is expected to fit in an int. --- lib/libc_r/test/guard_b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc_r') diff --git a/lib/libc_r/test/guard_b.c b/lib/libc_r/test/guard_b.c index 3824c07..35aa406 100644 --- a/lib/libc_r/test/guard_b.c +++ b/lib/libc_r/test/guard_b.c @@ -71,7 +71,7 @@ recurse(void *args) */ 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, + (int)(parms->top - (void *)&top), FRAME_SIZE * parms->cur, parms->cur); } -- cgit v1.1