Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libm use PRIu64 to print uint64_t, don't print sizeof
details: https://anonhg.NetBSD.org/src/rev/8460eb369a96
branches: trunk
changeset: 356070:8460eb369a96
user: maya <maya%NetBSD.org@localhost>
date: Wed Aug 30 14:24:20 2017 +0000
description:
use PRIu64 to print uint64_t, don't print sizeof
fixes build. sorry, built tested an older version for 32bit.
diffstat:
tests/lib/libm/t_round.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r bcca57a406c9 -r 8460eb369a96 tests/lib/libm/t_round.c
--- a/tests/lib/libm/t_round.c Wed Aug 30 10:51:06 2017 +0000
+++ b/tests/lib/libm/t_round.c Wed Aug 30 14:24:20 2017 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index