From 439c0c9b3299cbb2c1ed948b731aefaefc524ccb Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Thu, 26 Sep 2024 14:17:10 -0700 Subject: [PATCH] Fixed bug in asDouble. --- ZString.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ZString.cpp b/ZString.cpp index f66c77b..3b4c77b 100644 --- a/ZString.cpp +++ b/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)