1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefer RBOOL

This commit is contained in:
Nobuyoshi Nakada 2022-01-01 16:57:22 +09:00
parent 069cca6f74
commit 789da481fc
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2022-01-01 18:54:14 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -693,7 +693,7 @@ checktype
(VALUE val)
(VALUE ret)
{
ret = (TYPE(val) == (int)type) ? Qtrue : Qfalse;
ret = RBOOL(TYPE(val) == (int)type);
}
/**********************************************************/

View file

@ -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!