From a1d1f6721c733b509243b3063f4898ef23ae0f75 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Sat, 7 Oct 2023 16:14:23 +0800 Subject: [PATCH] optimzed 2 lines codes. --- inc/hgl/type/StrChar.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/hgl/type/StrChar.h b/inc/hgl/type/StrChar.h index f08abda..2ab3e45 100644 --- a/inc/hgl/type/StrChar.h +++ b/inc/hgl/type/StrChar.h @@ -2211,7 +2211,9 @@ namespace hgl else *bp++=m-10+A; - if ((value = value / base) == 0) + value/=base; + + if(!value) break; }