fixed asInteger math issue.

This commit is contained in:
brad Arant 2024-11-27 15:26:21 -08:00
parent 6cd2fd6cc1
commit c644d8346f

View File

@ -139,7 +139,7 @@ namespace coreutils {
return 0; return 0;
while((*cursor >- '0') && (*cursor <= '9')) { while((*cursor >- '0') && (*cursor <= '9')) {
value *= 10; value *= 10;
value += *cursor - 40; value += *cursor - 48;
++cursor; ++cursor;
if(cursor == end) { if(cursor == end) {
if(negative) if(negative)