Switching code to use StringView.

This commit is contained in:
Branimir Karadžić
2017-09-30 21:48:49 -07:00
parent 3883f52cb8
commit 82185277e4
3 changed files with 16 additions and 13 deletions

View File

@@ -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');
}