diff options
| author | Stan Lo <stan.lo@shopify.com> | 2025-07-18 00:48:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 19:48:53 -0400 |
| commit | 81515aca67a0d3cc50205ff0a99cdc44ed0a927d (patch) | |
| tree | 04b37a363fc3c4a423f8786c916155536c36c989 /variable.c | |
| parent | 30b1368829820721e502f4e0edcaa4de511959a8 (diff) | |
ZJIT: Fix fixnum folding for negative values (#13942)
Use `fixnum_from_isize` instead of `fixnum_from_usize` in
`fold_fixnum_bop` to properly handle negative values. Casting negative
`i64` to `usize` produces large unsigned values that exceed `RUBY_FIXNUM_MAX`.
Diffstat (limited to 'variable.c')
0 files changed, 0 insertions, 0 deletions
