mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
e72c5044ce
commit
e026368061
Notes:
git
2022-10-21 07:36:07 +00:00
3 changed files with 28 additions and 6 deletions
4
range.c
4
range.c
|
@ -816,7 +816,9 @@ range_size(VALUE range)
|
|||
}
|
||||
}
|
||||
else if (NIL_P(b)) {
|
||||
return DBL2NUM(HUGE_VAL);
|
||||
if (rb_obj_is_kind_of(e, rb_cNumeric)) {
|
||||
return DBL2NUM(HUGE_VAL);
|
||||
}
|
||||
}
|
||||
|
||||
return Qnil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue