summaryrefslogtreecommitdiff
path: root/py/gc.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-08-13 23:34:47 +1000
committerDamien George <damien.p.george@gmail.com>2018-08-13 23:34:47 +1000
commitcbec17f2cd2712772bc57f3530d6d16f8552e155 (patch)
treec4f3bbc1827a441a36730cdbe269718ccec95b7d /py/gc.c
parent86e0b2553288bf40a22e1e91d161c075295dd4a7 (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