diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-07-23 18:28:51 -0400 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2024-07-24 18:20:30 +0200 |
| commit | d08e55141e81dfdb2b577d0627f7218de87eb27a (patch) | |
| tree | 588a6e7cbdd923e9a96afe115aa5d416a19e1181 /test | |
| parent | 28382505b286a404fdf53bb17720f850d8dfdecc (diff) | |
Make Integer#round spec work regardless of pointer size
The spec is actually testing a behaviour stemming from NUM2INT(), and
since `sizeof(long)>=sizeof(int)`, `min_long-1` always makes NUM2INT()
raise `RangeError`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11130
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
