jpountz commented on PR #13376:
URL: https://github.com/apache/lucene/pull/13376#issuecomment-2116909274

   Thanks for looking into it! Your approach works, but I'm tempted to fix it 
the other way around, by no longer checking if values are in the expected range 
with `Math.toIntExact` but rather by checking that the value is in the `[0, 
2**32)` range?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to