diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2024-11-08 14:46:35 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2024-11-08 19:48:56 +0900 |
| commit | 45cd4a8296814f3b082dfb906cdef29974726731 (patch) | |
| tree | f0bb06b401fd95c09e9b44281473fafe5621c67b /lib | |
| parent | f7b334e002eba25e386917337771b65bed5297f8 (diff) | |
Do not round `a**b` to infinity
... instead, just calculate the value unless it is too big.
Also, this change raises an ArgumentError if it is expected to exceed
16 GB in a 64-bit environment.
(It is possible to calculate it straightforward, but it would likely be
out-of-memory, so I didn't think it would make sense.)
[Feature #20811]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12033
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
