ruby-changes:67917
From: S-H-GAMELINKS <ko1@a...>
Date: Sat, 11 Sep 2021 09:15:30 +0900 (JST)
Subject: [ruby-changes:67917] 9784f6685e (master): Using NIL_P macro instead of RB_TYPE_P macro
https://git.ruby-lang.org/ruby.git/commit/?id=9784f6685e From 9784f6685e1ccf7929c53ecc95272006645e70c5 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS <gamelinks007@g...> Date: Sat, 4 Sep 2021 01:25:36 +0900 Subject: Using NIL_P macro instead of RB_TYPE_P macro --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numeric.c b/numeric.c index 9252c7c..f925b93 100644 --- a/numeric.c +++ b/numeric.c @@ -3079,7 +3079,7 @@ rb_num2ll(VALUE val) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3079 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)) { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/