diff options
author | Damien George <damien.p.george@gmail.com> | 2018-08-13 23:34:47 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-08-13 23:34:47 +1000 |
commit | cbec17f2cd2712772bc57f3530d6d16f8552e155 (patch) | |
tree | c4f3bbc1827a441a36730cdbe269718ccec95b7d /py/gc.c | |
parent | 86e0b2553288bf40a22e1e91d161c075295dd4a7 (diff) |
py/compile: For dynamic compiler, widen literal 1 to get correct shift.
Without this patch, on 64-bit architectures the "1 << (small_int_bits - 1)"
is computed using only 32-bit values (since small_int_bits is a uint8_t)
and so will overflow (and give the wrong result) if small_int_bits is
larger than 32.
Diffstat (limited to 'py/gc.c')
0 files changed, 0 insertions, 0 deletions