fixed asInteger math issue.
This commit is contained in:
parent
6cd2fd6cc1
commit
c644d8346f
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user