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