From 75dc103fd020fa30fe7389cad07ad30114f9f531 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 29 Aug 2011 22:33:28 +0200 Subject: [PATCH] Single-bit bitfield 'upgrade' should be unsigned. Fixes sparse error report: dubious one-bit signed bitfield. --- http_parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_parser.h b/http_parser.h index 7d39520..76a61f2 100644 --- a/http_parser.h +++ b/http_parser.h @@ -222,7 +222,7 @@ struct http_parser { * Should be checked when http_parser_execute() returns in addition to * error checking. */ - char upgrade : 1; + unsigned char upgrade : 1; #if HTTP_PARSER_DEBUG uint32_t error_lineno;