From 43fe5601415dc3a2f0f6cc40d0dd9e0eec554f18 Mon Sep 17 00:00:00 2001 From: Yuxiao Mao Date: Fri, 11 Oct 2024 16:03:17 +0200 Subject: [PATCH] Fix convert HBool when Bool is 1 byte --- hld/Eval.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hld/Eval.hx b/hld/Eval.hx index 58f1a7b..29418c7 100644 --- a/hld/Eval.hx +++ b/hld/Eval.hx @@ -1043,7 +1043,7 @@ class Eval { case HF64, HF32: VFloat(haxe.io.FPHelper.i64ToDouble(p.i64.low,p.i64.high)); case HBool: - VBool(p.toInt() != 0); + VBool(p.toInt() & 0xFF != 0); default: return valueCast(p, t); };