Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen cast RHS of >>= operation to unsigned int
details: https://anonhg.NetBSD.org/src/rev/96b8569dd8ba
branches: trunk
changeset: 778430:96b8569dd8ba
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 25 19:53:41 2012 +0000
description:
cast RHS of >>= operation to unsigned int
diffstat:
lib/libc/gen/fixunsgen_ieee754.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r fd41453f9c11 -r 96b8569dd8ba lib/libc/gen/fixunsgen_ieee754.c
--- a/lib/libc/gen/fixunsgen_ieee754.c Sun Mar 25 19:53:18 2012 +0000
+++ b/lib/libc/gen/fixunsgen_ieee754.c Sun Mar 25 19:53:41 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fixunsgen_ieee754.c,v 1.2 2011/08/31 22:36:36 matt Exp $ */
+/* $NetBSD: fixunsgen_ieee754.c,v 1.3 2012/03/25 19:53:41 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if !defined(FIXUNSNAME) && defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fixunsgen_ieee754.c,v 1.2 2011/08/31 22:36:36 matt Exp $");
+__RCSID("$NetBSD: fixunsgen_ieee754.c,v 1.3 2012/03/25 19:53:41 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include <stddef.h>
@@ -83,7 +83,7 @@
* Shift the current value over and insert the bits
* we want. We're done.
*/
- tmp <<= ebits;
+ tmp <<= (unsigned int)ebits;
tmp |= *frac >> (fracbits - ebits);
break;
}
@@ -94,7 +94,7 @@
*/
tmp = *frac--;
} else {
- tmp <<= fracbits;
+ tmp <<= (unsigned int)fracbits;
tmp |= *frac--;
}
ebits -= fracbits;
Home |
Main Index |
Thread Index |
Old Index