fixed bug with asInteger on ZString.
This commit is contained in:
parent
f8557aa5f5
commit
921854e455
@ -137,7 +137,7 @@ namespace coreutils {
|
|||||||
++cursor;
|
++cursor;
|
||||||
if(cursor == end)
|
if(cursor == end)
|
||||||
return 0;
|
return 0;
|
||||||
while((*cursor >- '0') && (*cursor <= '9')) {
|
while((*cursor >= '0') && (*cursor <= '9')) {
|
||||||
value *= 10;
|
value *= 10;
|
||||||
value += *cursor - 48;
|
value += *cursor - 48;
|
||||||
++cursor;
|
++cursor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user