diff options
author | S-H-GAMELINKS <[email protected]> | 2021-09-04 01:25:36 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-09-11 09:15:21 +0900 |
commit | 9784f6685e1ccf7929c53ecc95272006645e70c5 (patch) | |
tree | de3bbf99d7daf5cff6fe514f65c5817b83ace351 /numeric.c | |
parent | 032534dbdf08c0912dffa482e29a491b8aa9276c (diff) |
Using NIL_P macro instead of RB_TYPE_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4806
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3079,7 +3079,7 @@ rb_num2ll(VALUE val) unsigned LONG_LONG rb_num2ull(VALUE val) { - if (RB_TYPE_P(val, T_NIL)) { + if (NIL_P(val)) { rb_raise(rb_eTypeError, "no implicit conversion from nil"); } else if (RB_TYPE_P(val, T_FIXNUM)) { |