diff options
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)) { |