mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-19 21:43:00 +01:00
Switching code to use StringView.
This commit is contained in:
@@ -1102,7 +1102,7 @@ namespace bx
|
||||
|
||||
int32_t result = 0;
|
||||
|
||||
for (ch = *str++; isNumeric(ch) && str != term+1; ch = *str++)
|
||||
for (ch = *str++; isNumeric(ch) && str <= term; ch = *str++)
|
||||
{
|
||||
result = 10*result - (ch - '0');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user