diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-05-21 06:57:41 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-05-21 06:57:41 -0700 |
commit | e3993c39133c73ba981f7cf5f74c758f47927387 (patch) | |
tree | 0d3be05d6d4c38b4d72de123547162afefae9f9b /tests/016/arith.tl | |
parent | a8af1ac53edacc13d47dd5ab6ca33b6b90f9f537 (diff) | |
download | txr-e3993c39133c73ba981f7cf5f74c758f47927387.tar.gz txr-e3993c39133c73ba981f7cf5f74c758f47927387.tar.bz2 txr-e3993c39133c73ba981f7cf5f74c758f47927387.zip |
mpi: incorrect unsigned integer extraction.
* mpi/mpi.c (mp_get_uintptr, mp_get_double_uintptr): Fix loops
which shift and mask the bignum digits together in the wrong
way. The post-iteration shift is also wrong. We are fine in
mp_get_uintptr because the affected code is in an #if that
doesn't actually occur: bignum digits are pointer-sized.
mp_get_double_uintptr affects the conversion of bignums to
64 bits on 32 bit platforms.
Diffstat (limited to 'tests/016/arith.tl')
0 files changed, 0 insertions, 0 deletions