diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-09-28 19:27:58 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-09-28 19:41:33 +0200 |
commit | 59903b1fab6ba3536b3a2fd3b29acca824fb2e3b (patch) | |
tree | 1403f27515d93a4b6e85a2a6cdd37a215898d5bf /deps | |
parent | d02a7d833083518353ede8c940410d5229e83e48 (diff) | |
download | libgit2-59903b1fab6ba3536b3a2fd3b29acca824fb2e3b.tar.gz |
Change types in http-parser
Diffstat (limited to 'deps')
-rw-r--r-- | deps/http-parser/http_parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c index 432a7c5dc..f51e904f8 100644 --- a/deps/http-parser/http_parser.c +++ b/deps/http-parser/http_parser.c @@ -364,7 +364,7 @@ size_t http_parser_execute (http_parser *parser, char c, ch; int8_t unhex_val; const char *p = data, *pe; - off_t to_read; + size_t to_read; enum state state; enum header_states header_state; uint64_t index = parser->index; @@ -1578,7 +1578,7 @@ size_t http_parser_execute (http_parser *parser, } case s_body_identity: - to_read = (off_t) MIN(pe - p, parser->content_length); + to_read = (size_t)MIN(pe - p, parser->content_length); if (to_read > 0) { if (settings->on_body) settings->on_body(parser, p, to_read); p += to_read - 1; @@ -1672,14 +1672,14 @@ size_t http_parser_execute (http_parser *parser, { assert(parser->flags & F_CHUNKED); - to_read = (off_t) MIN(pe - p, parser->content_length); + to_read = (size_t)MIN(pe - p, parser->content_length); if (to_read > 0) { if (settings->on_body) settings->on_body(parser, p, to_read); p += to_read - 1; } - if (to_read == parser->content_length) { + if (to_read == (size_t)parser->content_length) { state = s_chunk_data_almost_done; } |