From deb133c8efd2cebfff0207b6b6dddea40fdd3e90 Mon Sep 17 00:00:00 2001 From: leviongit Date: Sat, 9 Mar 2024 13:56:21 +0100 Subject: [PATCH] use a type-check macro instead of `mrb_type` comparison --- src/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.c b/src/vm.c index aa75cba67..13b15fb37 100644 --- a/src/vm.c +++ b/src/vm.c @@ -2662,7 +2662,7 @@ RETRY_TRY_BLOCK: if (mrb_obj_eq(mrb, regs[a], regs[a+1])) { SET_TRUE_VALUE(regs[a]); } - else if (mrb_type(regs[a]) == MRB_TT_SYMBOL) { + else if (mrb_symbol_p(regs[a])) { SET_FALSE_VALUE(regs[a]); } else {