diff options
author | madmaxoft <github@xoft.cz> | 2014-04-01 16:36:00 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-01 16:36:00 +0200 |
commit | 1795cca5522476006d33d0c276e27a50659c867a (patch) | |
tree | c4abcc1ac701bbaf092a729a093058601aae1e79 /src/HTTPServer/NameValueParser.cpp | |
parent | Removed the exit-time-destructors flag from clang. (diff) | |
download | cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar.gz cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar.bz2 cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar.lz cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar.xz cuberite-1795cca5522476006d33d0c276e27a50659c867a.tar.zst cuberite-1795cca5522476006d33d0c276e27a50659c867a.zip |
Diffstat (limited to 'src/HTTPServer/NameValueParser.cpp')
-rw-r--r-- | src/HTTPServer/NameValueParser.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HTTPServer/NameValueParser.cpp b/src/HTTPServer/NameValueParser.cpp index 9ea8594ae..3f6c17dda 100644 --- a/src/HTTPServer/NameValueParser.cpp +++ b/src/HTTPServer/NameValueParser.cpp @@ -24,7 +24,7 @@ public: // Now try parsing char-by-char, to debug transitions across datachunk boundaries: cNameValueParser Parser2; - for (int i = 0; i < sizeof(Data) - 1; i++) + for (size_t i = 0; i < sizeof(Data) - 1; i++) { Parser2.Parse(Data + i, 1); } @@ -82,7 +82,7 @@ cNameValueParser::cNameValueParser(bool a_AllowsKeyOnly) : -cNameValueParser::cNameValueParser(const char * a_Data, int a_Size, bool a_AllowsKeyOnly) : +cNameValueParser::cNameValueParser(const char * a_Data, size_t a_Size, bool a_AllowsKeyOnly) : m_State(psKeySpace), m_AllowsKeyOnly(a_AllowsKeyOnly) { @@ -93,12 +93,12 @@ cNameValueParser::cNameValueParser(const char * a_Data, int a_Size, bool a_Allow -void cNameValueParser::Parse(const char * a_Data, int a_Size) +void cNameValueParser::Parse(const char * a_Data, size_t a_Size) { ASSERT(m_State != psFinished); // Calling Parse() after Finish() is wrong! int Last = 0; - for (int i = 0; i < a_Size;) + for (size_t i = 0; i < a_Size;) { switch (m_State) { |