From 7ecfb597579e1652abbf71702278c9988cae6783 Mon Sep 17 00:00:00 2001 From: GutPuncher Date: Wed, 25 Oct 2023 22:46:27 -0400 Subject: [PATCH] optimize change from #131 --- src/Kernel/StrScan.ZC | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Kernel/StrScan.ZC b/src/Kernel/StrScan.ZC index 126e1317..81ab28ec 100755 --- a/src/Kernel/StrScan.ZC +++ b/src/Kernel/StrScan.ZC @@ -13,13 +13,8 @@ I64 Str2I64(U8 *st, I64 radix=10, U8 **_end_ptr=NULL) } while (Bt(char_bmp_white_space, *st)) st++; - if (*st == '+') - st++; - else if (*st == '-') - { - neg = TRUE; - st++; - } + if (*st == '+' || *st == '-') + neg = *st++ == '-'; while (TRUE) switch (*st) {