Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Single-bit bitfield 'upgrade' should be unsigned. #61

Merged
merged 1 commit into from

2 participants

@bnoordhuis

Fixes sparse error report: dubious one-bit signed bitfield.

@bnoordhuis bnoordhuis Single-bit bitfield 'upgrade' should be unsigned.
Fixes sparse error report: dubious one-bit signed bitfield.
75dc103
@clifffrey clifffrey merged commit c0ecab0 into joyent:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 29, 2011
  1. @bnoordhuis

    Single-bit bitfield 'upgrade' should be unsigned.

    bnoordhuis authored
    Fixes sparse error report: dubious one-bit signed bitfield.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  http_parser.h
View
2  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;
Something went wrong with that request. Please try again.