Fixed bug in asDouble.
This commit is contained in:
1 parent
e2d20a0c2d
commit
439c0c9b32
1 file changed
+6
-7
+6
-7
@@ -145,13 +145,12 @@ namespace coreutils {
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(*cursor != '.')
|
if(*cursor != '.') {
|
||||||
if(cursor == end) {
|
if(negative)
|
||||||
if(negative)
|
return -value;
|
||||||
return -value;
|
else
|
||||||
else
|
return value;
|
||||||
return value;
|
}
|
||||||
}
|
|
||||||
++cursor;
|
++cursor;
|
||||||
if(cursor == end) {
|
if(cursor == end) {
|
||||||
if(negative)
|
if(negative)
|
||||||
|
|||||||
Reference in new issue
Block a user