Fix test-instruction with non-booleans

This commit is contained in:
Sofia 2026-03-22 00:23:31 +02:00
parent cc943915b2
commit 8299a64dde

View File

@ -730,7 +730,7 @@ impl<UserData: Clone> ClosureRunner<UserData> {
.unwrap_or(Value::Nil) .unwrap_or(Value::Nil)
{ {
Value::Boolean(val) => (val.0 as u16) == *c, Value::Boolean(val) => (val.0 as u16) == *c,
_ => false, _ => (false as u16) == *c,
}; };
if is_true { if is_true {
let b = self.get_stack(*b); let b = self.get_stack(*b);