tweak
This commit is contained in:
parent
a3e78c5453
commit
51387dfbfb
1 changed files with 1 additions and 1 deletions
|
@ -1340,7 +1340,7 @@ int TextToInteger(const char *text)
|
|||
text++;
|
||||
}
|
||||
|
||||
for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); ++i) value = value*10 + (int)(text[i] - '0');
|
||||
for (int i = 0; ((text[i] >= '0') && (text[i] <= '9')); i++) value = value*10 + (int)(text[i] - '0');
|
||||
|
||||
return value*sign;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue