mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
Do a pass of compiler warning fixes.
This is really making me question not using 64-bit integers more.
This commit is contained in:
parent
243e1d8462
commit
58240fdb33
21 changed files with 89 additions and 84 deletions
|
@ -131,7 +131,7 @@ inline bool is_valid_final_character(byte ch)
|
|||
unsigned parse_uint(const String& str, bool& ok)
|
||||
{
|
||||
unsigned value = 0;
|
||||
for (size_t i = 0; i < str.length(); ++i) {
|
||||
for (int i = 0; i < str.length(); ++i) {
|
||||
if (str[i] < '0' || str[i] > '9') {
|
||||
ok = false;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue