Module Name: src Committed By: christos Date: Sat Nov 27 21:22:11 UTC 2010
Modified Files: src/lib/libc/gen: unvis.c Log Message: fix lint warning. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/lib/libc/gen/unvis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/unvis.c diff -u src/lib/libc/gen/unvis.c:1.31 src/lib/libc/gen/unvis.c:1.32 --- src/lib/libc/gen/unvis.c:1.31 Sat Nov 27 14:44:21 2010 +++ src/lib/libc/gen/unvis.c Sat Nov 27 16:22:11 2010 @@ -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);