Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Single-bit bitfield 'upgrade' should be unsigned.

Fixes sparse error report: dubious one-bit signed bitfield.
  • Loading branch information...
commit 75dc103fd020fa30fe7389cad07ad30114f9f531 1 parent 918a071
Ben Noordhuis bnoordhuis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  http_parser.h
2  http_parser.h
@@ -222,7 +222,7 @@ struct http_parser {
222 222 * Should be checked when http_parser_execute() returns in addition to
223 223 * error checking.
224 224 */
225   - char upgrade : 1;
  225 + unsigned char upgrade : 1;
226 226
227 227 #if HTTP_PARSER_DEBUG
228 228 uint32_t error_lineno;

0 comments on commit 75dc103

Please sign in to comment.
Something went wrong with that request. Please try again.