Skip to content

Commit ad2b719

Browse files
committed
RJIT: C::FL_TEST_RAW returns RBOOL
1 parent 57ee627 commit ad2b719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby_vm/rjit/insn_compiler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ def invokesuper(jit, ctx, asm)
15021502
# vm_search_normal_superclass
15031503
rbasic_klass = C.to_ruby(C.RBasic.new(C.to_value(current_defined_class)).klass)
15041504
if C::BUILTIN_TYPE(current_defined_class) == C::RUBY_T_ICLASS && C::BUILTIN_TYPE(rbasic_klass) == C::RUBY_T_MODULE && \
1505-
C::FL_TEST_RAW(rbasic_klass, C::RMODULE_IS_REFINEMENT) != 0
1505+
C::FL_TEST_RAW(rbasic_klass, C::RMODULE_IS_REFINEMENT)
15061506
return CantCompile
15071507
end
15081508
comptime_superclass = C.rb_class_get_superclass(C.RCLASS_ORIGIN(current_defined_class))

0 commit comments

Comments
 (0)