Fixed bug in asDouble.
This commit is contained in:
parent
e2d20a0c2d
commit
439c0c9b32
13
ZString.cpp
13
ZString.cpp
@ -145,13 +145,12 @@ namespace coreutils {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
if(*cursor != '.')
|
||||
if(cursor == end) {
|
||||
if(negative)
|
||||
return -value;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
if(*cursor != '.') {
|
||||
if(negative)
|
||||
return -value;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
++cursor;
|
||||
if(cursor == end) {
|
||||
if(negative)
|
||||
|
Loading…
x
Reference in New Issue
Block a user