Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gdtoa fix tyop
details: https://anonhg.NetBSD.org/src/rev/fabfae3b2201
branches: trunk
changeset: 1009070:fabfae3b2201
user: christos <christos%NetBSD.org@localhost>
date: Sat Apr 11 20:48:53 2020 +0000
description:
fix tyop
diffstat:
lib/libc/gdtoa/hdtoa.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f004ad0a8185 -r fabfae3b2201 lib/libc/gdtoa/hdtoa.c
--- a/lib/libc/gdtoa/hdtoa.c Sat Apr 11 20:28:28 2020 +0000
+++ b/lib/libc/gdtoa/hdtoa.c Sat Apr 11 20:48:53 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdtoa.c,v 1.10 2020/04/11 20:28:28 christos Exp $ */
+/* $NetBSD: hdtoa.c,v 1.11 2020/04/11 20:48:53 christos Exp $ */
/*-
* Copyright (c) 2004, 2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -30,7 +30,7 @@
#if 0
__FBSDID("$FreeBSD: src/lib/libc/gdtoa/_hdtoa.c,v 1.4 2007/01/03 04:57:58 das Exp $");
#else
-__RCSID("$NetBSD: hdtoa.c,v 1.10 2020/04/11 20:28:28 christos Exp $");
+__RCSID("$NetBSD: hdtoa.c,v 1.11 2020/04/11 20:48:53 christos Exp $");
#endif
#include <float.h>
@@ -348,7 +348,7 @@
* (partial) nibble, which is dealt with by the next
* statement. We also tack on the implicit normalization bit.
*/
- *s = (u.extu_ext.ext_frach | (1U << ((LDBL_MANT_DIG - 1) % 4))) 0xf;
+ *s = (u.extu_ext.ext_frach | (1U << ((LDBL_MANT_DIG - 1) % 4))) & 0xf;
/* If ndigits < 0, we are expected to auto-size the precision. */
if (ndigits < 0) {
Home |
Main Index |
Thread Index |
Old Index