Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen fix lint warning.
details: https://anonhg.NetBSD.org/src/rev/a29e3ce1c4dc
branches: trunk
changeset: 759084:a29e3ce1c4dc
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 27 21:22:11 2010 +0000
description:
fix lint warning.
diffstat:
lib/libc/gen/unvis.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 6f30ef8d4c75 -r a29e3ce1c4dc lib/libc/gen/unvis.c
--- a/lib/libc/gen/unvis.c Sat Nov 27 20:46:38 2010 +0000
+++ b/lib/libc/gen/unvis.c Sat Nov 27 21:22:11 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: unvis.c,v 1.31 2010/11/27 19:44:21 christos Exp $ */
+/* $NetBSD: unvis.c,v 1.32 2010/11/27 21:22:11 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: unvis.c,v 1.31 2010/11/27 19:44:21 christos Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.32 2010/11/27 21:22:11 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -197,8 +197,8 @@
* Top 8 bits hold the current character in the http 1866 nv string decoding
*/
#define GS(a) ((a) & 0xff)
-#define SS(a, b) (((a) << 24) | (b))
-#define GI(a) ((a) >> 24)
+#define SS(a, b) (((uint32_t)(a) << 24) | (b))
+#define GI(a) ((uint32_t)(a) >> 24)
_DIAGASSERT(cp != NULL);
_DIAGASSERT(astate != NULL);
Home |
Main Index |
Thread Index |
Old Index