Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/quad use explicit cast to pacify lint.
details: https://anonhg.NetBSD.org/src/rev/f237703f1913
branches: trunk
changeset: 783140:f237703f1913
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 07 15:41:02 2012 +0000
description:
use explicit cast to pacify lint.
diffstat:
common/lib/libc/quad/lshldi3.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0529105d3980 -r f237703f1913 common/lib/libc/quad/lshldi3.c
--- a/common/lib/libc/quad/lshldi3.c Fri Dec 07 15:38:04 2012 +0000
+++ b/common/lib/libc/quad/lshldi3.c Fri Dec 07 15:41:02 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lshldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $ */
+/* $NetBSD: lshldi3.c,v 1.4 2012/12/07 15:41:02 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lshldi3.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: lshldi3.c,v 1.3 2012/08/06 02:31:54 matt Exp $");
+__RCSID("$NetBSD: lshldi3.c,v 1.4 2012/12/07 15:41:02 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -59,7 +59,7 @@
return(a);
aa.q = a;
if (shift >= INT_BITS) {
- aa.ul[H] = aa.ul[L] << (shift - INT_BITS);
+ aa.ul[H] = aa.ul[L] << (unsigned int)(shift - INT_BITS);
aa.ul[L] = 0;
} else {
aa.ul[H] = (aa.ul[H] << shift) |
Home |
Main Index |
Thread Index |
Old Index