diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-06-29 21:59:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-19 09:47:43 +0900 |
commit | f09536175853d883130c2e54a1d418b497890462 (patch) | |
tree | 3fcd21aeeaf6951a6f3f58587e4bf48dbcafbe53 /parse.y | |
parent | 35c794b26d406c39f90e188e3884003fe6aca532 (diff) |
Repalce to NIL_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6073
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13612,7 +13612,7 @@ ripper_validate_object(VALUE self, VALUE x) { if (x == Qfalse) return x; if (x == Qtrue) return x; - if (x == Qnil) return x; + if (NIL_P(x)) return x; if (x == Qundef) rb_raise(rb_eArgError, "Qundef given"); if (FIXNUM_P(x)) return x; |