uschindler commented on PR #11923:
URL: https://github.com/apache/lucene/pull/11923#issuecomment-1312718213

   > @rmuir just some question about cases like `merge.estimatedMergeBytes / 
1024 / 1024.` changed to `merge.estimatedMergeBytes / 1024. / 1024.`: Were they 
also found by this check or did you just change them because you have ssen 
them. Because the pattern here is different. Division with integers should not 
overflow, so I wonder why this was found by the errorprone check. The new code 
is much better as it is consistent!
   
   A sorry, yes it is a bug for small integers. It is explained in the 
errorprone bug docs: https://errorprone.info/bugpattern/NarrowCalculation
   
   Sorry for asking!


-- 
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