Update HttpParser.h
This commit is contained in:
+1
-1
@@ -135,7 +135,7 @@ private:
|
|||||||
const size_t MAX_FALLBACK_SIZE = 1024 * 4;
|
const size_t MAX_FALLBACK_SIZE = 1024 * 4;
|
||||||
|
|
||||||
static unsigned int toUnsignedInteger(std::string_view str) {
|
static unsigned int toUnsignedInteger(std::string_view str) {
|
||||||
int unsignedIntegerValue = 0;
|
unsigned int unsignedIntegerValue = 0;
|
||||||
for (unsigned char c : str) {
|
for (unsigned char c : str) {
|
||||||
unsignedIntegerValue = unsignedIntegerValue * 10 + (c - '0');
|
unsignedIntegerValue = unsignedIntegerValue * 10 + (c - '0');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user