Closed eric closed 5 years ago
There are cases where the subscription math causes the uint16 to wrap around. Casting it to an int prevents this from happening
Is it worth adding a test case that this change fixes?
I'm not sure — it's hard to create small test cases for these sorts of situations.
There are cases where the subscription math causes the uint16 to wrap around. Casting it to an int prevents this from happening