Fix test-instruction with non-booleans
This commit is contained in:
parent
cc943915b2
commit
8299a64dde
@ -730,7 +730,7 @@ impl<UserData: Clone> ClosureRunner<UserData> {
|
||||
.unwrap_or(Value::Nil)
|
||||
{
|
||||
Value::Boolean(val) => (val.0 as u16) == *c,
|
||||
_ => false,
|
||||
_ => (false as u16) == *c,
|
||||
};
|
||||
if is_true {
|
||||
let b = self.get_stack(*b);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user