Module Name: src Committed By: maya Date: Wed Aug 30 14:24:20 UTC 2017
Modified Files: src/tests/lib/libm: t_round.c Log Message: use PRIu64 to print uint64_t, don't print sizeof fixes build. sorry, built tested an older version for 32bit. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libm/t_round.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libm/t_round.c diff -u src/tests/lib/libm/t_round.c:1.5 src/tests/lib/libm/t_round.c:1.6 --- src/tests/lib/libm/t_round.c:1.5 Wed Aug 30 10:51:06 2017 +++ src/tests/lib/libm/t_round.c Wed Aug 30 14:24:20 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: t_round.c,v 1.5 2017/08/30 10:51:06 maya Exp $ */ +/* $NetBSD: t_round.c,v 1.6 2017/08/30 14:24:20 maya Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -100,10 +100,9 @@ ATF_TC_BODY(rounding_alpha, tc) printf("d = %g\n", d); u = (gimpy_limb_t) d; - printf("sizeof u: %zu\n", sizeof(u)); for (; i > 0; i--) { - printf("i=%d, u: %lu\n", i, u); + printf("i=%d, u: %"PRIu64"\n", i, u); ATF_CHECK(!(u & 1)); u = u >> 1; }