You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@thetazero Small ints are stored in 30 bits themselves because they are stored in pointers with 2 bits to indicate what type of data it is. So, you are right that the small int check isn't correct. It should be more generic to handle any int. (Ints >2**30 are stored as objects rather than small ints in a pointer.)
CircuitPython version
Code/REPL
Behavior
Traceback (most recent call last):
File "", line 1, in
ValueError: no default packer
Description
This behavior is seen when passing ints greater than 2^30, which seems very strange.
I suspect it has something to do with the call to the function
mp_obj_is_small_int
: here.For some reason it is not entering
And continues until the failure case
Additional information
No response
The text was updated successfully, but these errors were encountered: