-
- Downloads
py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack.
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.
Showing
- extmod/moductypes.c 2 additions, 2 deletionsextmod/moductypes.c
- extmod/modure.c 2 additions, 2 deletionsextmod/modure.c
- py/binary.c 6 additions, 1 deletionpy/binary.c
- py/obj.c 1 addition, 1 deletionpy/obj.c
- py/obj.h 3 additions, 3 deletionspy/obj.h
- py/objint.c 1 addition, 1 deletionpy/objint.c
- py/objint_longlong.c 2 additions, 2 deletionspy/objint_longlong.c
- py/objint_mpz.c 2 additions, 2 deletionspy/objint_mpz.c
- py/stream.c 1 addition, 1 deletionpy/stream.c
- stmhal/modusocket.c 1 addition, 1 deletionstmhal/modusocket.c
- tests/basics/struct1.py 12 additions, 0 deletionstests/basics/struct1.py
- unix/modffi.c 3 additions, 3 deletionsunix/modffi.c
- unix/modsocket.c 1 addition, 1 deletionunix/modsocket.c
Loading
Please register or sign in to comment