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
I think that the cause is this line from the source code (link to line 223 of BitSetLike.scala).
Based on the loop termination condition, the loop looks like it is meant to walk backwards through the array of words. And this is what you would expect for "last"
But the index variable "i" is being incremented.
I believe that what is happening in the example above is that "i" is being incremented until it overflows to MIN_INT (this takes several seconds on my machine) - and then the loop terminates and the exception is thrown.
(0 to 128) seems to be the smallest example on which this fails. (0 to 127) is fine.
The text was updated successfully, but these errors were encountered:
A non-empty bitset incorrectly raises an "Empty BitSet" exception. The exception occurs several seconds after invoking the method.
I think that the cause is this line from the source code (link to line 223 of BitSetLike.scala).
Based on the loop termination condition, the loop looks like it is meant to walk backwards through the array of words. And this is what you would expect for "last"
But the index variable "i" is being incremented.
I believe that what is happening in the example above is that "i" is being incremented until it overflows to MIN_INT (this takes several seconds on my machine) - and then the loop terminates and the exception is thrown.
(0 to 128) seems to be the smallest example on which this fails. (0 to 127) is fine.
The text was updated successfully, but these errors were encountered: