Closed SunFulong closed 2 months ago
This is wrong. It won't create an ID 9007199254740992. It is also unnecessary, the code as it stands is correct.
the bug I mentioned in the other thread is on this line:
The 0
must be 1
...
It won't create an ID 9007199254740992.
Although it won't created, but it can be reached at previous round.
Although it won't created, but it can be reached at previous round.
yes, you are right actually, it would spit out 9007199254740992. however, I stand by my other comment: it is unnecessary (IOW: the PR code does not change the functional behavior in any way. and non-functional behavior .. performance .. I am not convinced it would be an improvement ... or even necessary anyways.
if you file a PR that changes the 0
to 1
to fix the bug I mentioned above, that would be highly welcome! I'd merged it right away ...
if you file a PR that changes the 0 to 1 to fix the bug
See #1637
Wrapping around at the boundary should do check first.