mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
This removes mpz_as_int, since that was a terrible function (it implemented saturating conversion). Use mpz_as_int_checked and mpz_as_uint_checked. These now work correctly (they previously had wrong overflow checking, eg print(chr(10000000000000)) on 32-bit machine would incorrectly convert this large number to a small int).
4.6 KiB
4.6 KiB