Skip to content

Commit

Permalink
Fix convert HBool when Bool is 1 byte
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Oct 11, 2024
1 parent 2e579e6 commit 43fe560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hld/Eval.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 43fe560

Please sign in to comment.