use a type-check macro instead of mrb_type comparison

This commit is contained in:
leviongit
2024-03-09 13:56:21 +01:00
parent d1b3198109
commit deb133c8ef
+1 -1
View File
@@ -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 {