easyice commented on code in PR #13376:
URL: https://github.com/apache/lucene/pull/13376#discussion_r1604980640
##########
lucene/test-framework/src/java/org/apache/lucene/tests/store/BaseDirectoryTestCase.java:
##########
@@ -1442,6 +1442,19 @@ public void testListAllIsSorted() throws IOException {
}
}
+ public void testGroupVIntOverflow() throws IOException {
+ try (Directory dir = getDirectory(createTempDir("testGroupVIntOverflow")))
{
+ final int v = 1 << 30;
+ final long[] values = new long[4];
+ values[0] = v;
+ values[0] <<= 1; // values[0] = 2147483648 as long, but as int it is
-2147483648
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]