diff options
author | Angus Gratton <angus@redyak.com.au> | 2025-03-26 11:07:52 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-07-18 00:12:05 +1000 |
commit | 516aa02104c3344903bdda078b7c87f71f94938d (patch) | |
tree | db852578d823aab814afbf05124dfea8e0b9c464 /py/objcode.c | |
parent | d07f103d68d8bb1b65cba047b9bef093b9375ebd (diff) |
py/objint_longlong: Add arithmetic overflow checks.
Long long big integer support now raises an exception on overflow rather
than returning an undefined result.
Also adds an error when shifting by a negative value.
The new arithmetic checks are added in the misc.h header.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'py/objcode.c')
0 files changed, 0 insertions, 0 deletions