From 464b4d3e4a4ec77cecf0e6f8fa818b76fb949146 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 20 Apr 2012 13:15:43 -0400 Subject: Suppress compiler warnings and do splint cleanup. All regression tests pass. --- bits.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bits.c') diff --git a/bits.c b/bits.c index 34fd4064..502e0a7d 100644 --- a/bits.c +++ b/bits.c @@ -27,13 +27,13 @@ uint64_t ubits(char buf[], unsigned int start, unsigned int width, bool le) /*@i1@*/ assert(width <= sizeof(uint64_t) * CHAR_BIT); for (i = start / CHAR_BIT; i < (start + width + CHAR_BIT - 1) / CHAR_BIT; i++) { - fld <<= CHAR_BIT; + /*@i1@*/fld <<= CHAR_BIT; fld |= (unsigned char)buf[i]; } end = (start + width) % CHAR_BIT; if (end != 0) { - fld >>= (CHAR_BIT - end); + /*@i1@*/fld >>= (CHAR_BIT - end); } /*@ -shiftimplementation @*/ -- cgit v1.2.1