summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2021-09-04 01:25:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-09-11 09:15:21 +0900
commit9784f6685e1ccf7929c53ecc95272006645e70c5 (patch)
treede3bbf99d7daf5cff6fe514f65c5817b83ace351
parent032534dbdf08c0912dffa482e29a491b8aa9276c (diff)
Using NIL_P macro instead of RB_TYPE_P macro
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4806
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index 9252c7ca0e..f925b93dbf 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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)) {