mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 12:40:15 +01:00
mp_obj_int_get_truncated is used as a "fast path" int accessor that doesn't check for overflow and returns the int truncated to the machine word size, ie mp_int_t. Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word sized values. Addresses issues #779 and #998.
16 KiB
16 KiB