fixed bug with asInteger on ZString.

This commit is contained in:
barant committed 2024-12-23 09:37:14 -08:00
1 parent f8557aa5f5
commit 921854e455
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ namespace coreutils {
++cursor;
if(cursor == end)
return 0;
while((*cursor >- '0') && (*cursor <= '9')) {
while((*cursor >= '0') && (*cursor <= '9')) {
value *= 10;
value += *cursor - 48;
++cursor;