Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/rapidjson/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ class GenericReader {
bool minus = Consume(s, '-');

// Parse int: zero / ( digit1-9 *DIGIT )
unsigned i = 0;
uint32_t i = 0;
uint64_t i64 = 0;
bool use64bit = false;
int significandDigit = 0;
Expand All @@ -1493,7 +1493,7 @@ class GenericReader {
s.TakePush();
}
else if (RAPIDJSON_LIKELY(s.Peek() >= '1' && s.Peek() <= '9')) {
i = static_cast<unsigned>(s.TakePush() - '0');
i = static_cast<uint32_t>(s.TakePush() - '0');

if (minus)
while (RAPIDJSON_LIKELY(s.Peek() >= '0' && s.Peek() <= '9')) {
Expand All @@ -1504,7 +1504,7 @@ class GenericReader {
break;
}
}
i = i * 10 + static_cast<unsigned>(s.TakePush() - '0');
i = i * 10 + static_cast<uint32_t>(s.TakePush() - '0');
significandDigit++;
}
else
Expand All @@ -1516,7 +1516,7 @@ class GenericReader {
break;
}
}
i = i * 10 + static_cast<unsigned>(s.TakePush() - '0');
i = i * 10 + static_cast<uint32_t>(s.TakePush() - '0');
significandDigit++;
}
}
Expand Down