Skip to content
Snippets Groups Projects
Commit cbec17f2 authored by Damien George's avatar Damien George
Browse files

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.
parent 86e0b255
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment