diff options
author | marcel <marcel@FreeBSD.org> | 2003-06-04 20:36:08 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2003-06-04 20:36:08 +0000 |
commit | ca51ecc2f17ca1745d1ee9c89490dd9078d181f1 (patch) | |
tree | e82ceaee04e0bb55284b90a6aaecd6dcce4ca52a /lib | |
parent | f9029b703d104ae6fb2f946ae455719a0d92dc8a (diff) | |
download | FreeBSD-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')
-rw-r--r-- | lib/libc_r/test/guard_b.c | 2 |
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); } |