From 921854e455b78f1ae97fd44e937fd75d7cd5e9dd Mon Sep 17 00:00:00 2001 From: barant Date: Mon, 23 Dec 2024 09:37:14 -0800 Subject: [PATCH] fixed bug with asInteger on ZString. --- ZString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ZString.cpp b/ZString.cpp index c6b37b8..5c41f1d 100644 --- a/ZString.cpp +++ b/ZString.cpp @@ -137,7 +137,7 @@ namespace coreutils { ++cursor; if(cursor == end) return 0; - while((*cursor >- '0') && (*cursor <= '9')) { + while((*cursor >= '0') && (*cursor <= '9')) { value *= 10; value += *cursor - 48; ++cursor;