diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-01-01 15:41:00 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-01-01 17:02:04 +0900 |
commit | 069cca6f7459da5cc502d0c51f60a9813c611b31 (patch) | |
tree | e33986c53af62142b310b187fdf50abea2aa5203 /gc.c | |
parent | 77ee47188efc64fe8b508494e9b11e8ed481d33c (diff) |
Negative RBOOL usage
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5385
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8600,7 +8600,7 @@ rb_copy_wb_protected_attribute(VALUE dest, VALUE obj) VALUE rb_obj_rgengc_writebarrier_protected_p(VALUE obj) { - return RVALUE_WB_UNPROTECTED(obj) ? Qfalse : Qtrue; + return RBOOL(!RVALUE_WB_UNPROTECTED(obj)); } VALUE @@ -12343,7 +12343,7 @@ wmap_aref(VALUE self, VALUE key) static VALUE wmap_has_key(VALUE self, VALUE key) { - return wmap_lookup(self, key) == Qundef ? Qfalse : Qtrue; + return RBOOL(wmap_lookup(self, key) != Qundef); } /* Returns the number of referenced objects */ |