From c644d8346fd1903097953d9cb25f5913a6c33f24 Mon Sep 17 00:00:00 2001 From: brad Arant Date: Wed, 27 Nov 2024 15:26:21 -0800 Subject: [PATCH] fixed asInteger math issue. --- ZString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZString.cpp b/ZString.cpp index d7d0674..2e5d389 100644 --- a/ZString.cpp +++ b/ZString.cpp @@ -139,7 +139,7 @@ namespace coreutils { return 0; while((*cursor >- '0') && (*cursor <= '9')) { value *= 10; - value += *cursor - 40; + value += *cursor - 48; ++cursor; if(cursor == end) { if(negative)