Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-09-28 22:21:48 +0400
committerVicent Marti <tanoku@gmail.com>2011-09-28 22:21:48 +0400
commitd215cf2429ab5a64c0b12b6dae8078626e1d9dc1 (patch)
tree387d0d12b47f9fbb8e46fafcd178004d10999f60 /deps
parent59903b1fab6ba3536b3a2fd3b29acca824fb2e3b (diff)
http-parser: More type changes
Diffstat (limited to 'deps')
-rw-r--r--deps/http-parser/http_parser.c6
-rw-r--r--deps/http-parser/http_parser.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/deps/http-parser/http_parser.c b/deps/http-parser/http_parser.c
index f51e904f8..438e81bec 100644
--- a/deps/http-parser/http_parser.c
+++ b/deps/http-parser/http_parser.c
@@ -367,8 +367,8 @@ size_t http_parser_execute (http_parser *parser,
size_t to_read;
enum state state;
enum header_states header_state;
- uint64_t index = parser->index;
- uint32_t nread = parser->nread;
+ size_t index = parser->index;
+ size_t nread = parser->nread;
const char *header_field_mark, *header_value_mark, *url_mark;
const char *matcher;
@@ -1679,7 +1679,7 @@ size_t http_parser_execute (http_parser *parser,
p += to_read - 1;
}
- if (to_read == (size_t)parser->content_length) {
+ if ((signed)to_read == parser->content_length) {
state = s_chunk_data_almost_done;
}
diff --git a/deps/http-parser/http_parser.h b/deps/http-parser/http_parser.h
index 12be0d23a..830fcd24f 100644
--- a/deps/http-parser/http_parser.h
+++ b/deps/http-parser/http_parser.h
@@ -201,7 +201,7 @@ enum http_errno {
struct http_parser {
/** PRIVATE **/
- uint32_t nread;
+ size_t nread;
int64_t content_length;
unsigned char type;