summaryrefslogtreecommitdiffstats
path: root/lib/libc_r
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-06-04 20:36:08 +0000
committermarcel <marcel@FreeBSD.org>2003-06-04 20:36:08 +0000
commitca51ecc2f17ca1745d1ee9c89490dd9078d181f1 (patch)
treee82ceaee04e0bb55284b90a6aaecd6dcce4ca52a /lib/libc_r
parentf9029b703d104ae6fb2f946ae455719a0d92dc8a (diff)
downloadFreeBSD-src-ca51ecc2f17ca1745d1ee9c89490dd9078d181f1.zip
FreeBSD-src-ca51ecc2f17ca1745d1ee9c89490dd9078d181f1.tar.gz
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.
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/test/guard_b.c2
1 files changed, 1 insertions, 1 deletions
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);
}
OpenPOWER on IntegriCloud