risdenk commented on code in PR #11923: URL: https://github.com/apache/lucene/pull/11923#discussion_r1020579969
########## lucene/core/src/java/org/apache/lucene/util/BytesRefHash.java: ########## @@ -414,7 +414,7 @@ private void rehash(final int newSize, boolean hashOnData) { } hashMask = newMask; - bytesUsed.addAndGet(Integer.BYTES * (-ids.length)); + bytesUsed.addAndGet(Integer.BYTES * (long) -ids.length); Review Comment: Would it be clearer as: ``` bytesUsed.addAndGet(Integer.BYTES * -1L * ids.length); ``` -- 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