diff --git a/insns.def b/insns.def index 87624a0500..30b7c626d7 100644 --- a/insns.def +++ b/insns.def @@ -693,7 +693,7 @@ checktype (VALUE val) (VALUE ret) { - ret = (TYPE(val) == (int)type) ? Qtrue : Qfalse; + ret = RBOOL(TYPE(val) == (int)type); } /**********************************************************/ diff --git a/yjit.rb b/yjit.rb index 0bc353992c..09ed3faaf3 100644 --- a/yjit.rb +++ b/yjit.rb @@ -149,7 +149,7 @@ module RubyVM::YJIT end def self.enabled? - Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse' + Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p())' end def self.simulate_oom!