diff options
| author | Alan Wu <XrXr@users.noreply.github.com> | 2024-07-23 18:21:38 -0400 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2024-07-24 18:20:30 +0200 |
| commit | fbb981b9f819d24c4e11132c02ec02401eabcc5e (patch) | |
| tree | 8fa1940f730c73dcb2b5b5f16f3b256c1c81342b /test | |
| parent | 12e6cf77efae6804063dbebe84e4080ca78958e7 (diff) | |
Stop depending on Integer#size to return `sizeof(long)`
There is no guarantee that Integer#size will continue to return
`sizeof(long)` for small integers.
Use the `l!` specifier for Array#pack instead. It is a public
interface that has a direct relationship with the `long` type.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11130
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
