initialization of large int64 attribute fails #502
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#502
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From test_embedding
Note "int32" in error message.
build()
should have been written as:numpy.iinfo(int64).{min,max}
are of Python type<class 'int'>
. Innac3artiq
, the Python type<class 'int'>
is translated to the typechecker typectx.primitives.int32
, and then anint32
range bound check is performed on the constant, and so the out of bounds error.Extra note: This also explains why initializing
self.int32_{min,max} = ...
works here.numpy.iinfo(int32).{min,max}
are also of Python type<class 'int>
-- andnac3artiq
translates<class 'int'>
toctx.primitives.int32
, and everything matches.