Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64/softfloat Make _Qp_qtoui return the ri...
details: https://anonhg.NetBSD.org/src/rev/e11a239c891a
branches: trunk
changeset: 546574:e11a239c891a
user: martin <martin%NetBSD.org@localhost>
date: Thu May 01 21:24:13 2003 +0000
description:
Make _Qp_qtoui return the right value for inputs that do not fit into
an int value, but are valid unsigned ints. This should fix PR 21414.
The same problem exists for _Qp_qtoux, but there is no similar trivial
solution to that (I could think of).
Pointed out by David Laight.
diffstat:
lib/libc/arch/sparc64/softfloat/qp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 78cecc7f1fe1 -r e11a239c891a lib/libc/arch/sparc64/softfloat/qp.c
--- a/lib/libc/arch/sparc64/softfloat/qp.c Thu May 01 20:46:20 2003 +0000
+++ b/lib/libc/arch/sparc64/softfloat/qp.c Thu May 01 21:24:13 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qp.c,v 1.4 2003/02/06 20:23:35 petrov Exp $ */
+/* $NetBSD: qp.c,v 1.5 2003/05/01 21:24:13 martin Exp $ */
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -222,7 +222,7 @@
unsigned int
_Qp_qtoui(float128 *a)
{
- return (unsigned int)float128_to_int32(*a);
+ return (unsigned int)float128_to_int64(*a);
}
Home |
Main Index |
Thread Index |
Old Index