Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/lib/libdtrace/common Redo previous ...
details: https://anonhg.NetBSD.org/src/rev/d841c31649ca
branches: trunk
changeset: 340788:d841c31649ca
user: riz <riz%NetBSD.org@localhost>
date: Thu Oct 01 20:51:19 2015 +0000
description:
Redo previous so as to not break non-arm MKDTRACE=yes builds.
diffstat:
external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r ce36be727221 -r d841c31649ca external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c
--- a/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c Thu Oct 01 19:45:37 2015 +0000
+++ b/external/cddl/osnet/dist/lib/libdtrace/common/dt_printf.c Thu Oct 01 20:51:19 2015 +0000
@@ -301,6 +301,9 @@
const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
{
double n = (double)normal;
+#if !defined(__arm__) && !defined(__powerpc__) && !defined(__mips__)
+ long double ldn = (long double)normal;
+#endif
switch (size) {
case sizeof (float):
@@ -311,7 +314,6 @@
*((double *)addr) / n));
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__mips__)
case sizeof (long double):
- long double ldn = (long double)normal;
return (dt_printf(dtp, fp, format,
*((long double *)addr) / ldn));
#endif
Home |
Main Index |
Thread Index |
Old Index