mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
For cases where size_t is smaller than mp_int_t (eg nan-boxing builds) the difference between two size_t's is not sign extended into mp_int_t and so the result is never negative. This patch fixes this bug by using ssize_t for the type of the result.
5.1 KiB
5.1 KiB