summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/getattr.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-08 21:38:43 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-08 21:38:43 +0100
commitdc3faea0405dea803828f5a2be314734b8c166b6 (patch)
tree933f1f551d07f7986cce5afa3767124216ba3f13 /tests/basics/getattr.py
parentd59c2e5e45389d4d280ccec52f88bc469b15a469 (diff)
downloadmicropython-dc3faea0405dea803828f5a2be314734b8c166b6.tar.gz
micropython-dc3faea0405dea803828f5a2be314734b8c166b6.zip
py/mpz: Fix bug with overflowing C-shift in division routine.
When DIG_SIZE=32, a uint32_t is used to store limbs, and no normalisation is needed because the MSB is already set, then there will be left and right shifts (in C) by 32 of a 32-bit variable, leading to undefined behaviour. This patch fixes this bug.
Diffstat (limited to 'tests/basics/getattr.py')
0 files changed, 0 insertions, 0 deletions