Permalink
Browse files

Single-bit bitfield 'upgrade' should be unsigned.

Fixes sparse error report: dubious one-bit signed bitfield.
  • Loading branch information...
1 parent 918a071 commit 75dc103fd020fa30fe7389cad07ad30114f9f531 @bnoordhuis bnoordhuis committed Aug 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 http_parser.h
View
@@ -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;

0 comments on commit 75dc103

Please sign in to comment.