LuciferYang commented on a change in pull request #33629:
URL: https://github.com/apache/spark/pull/33629#discussion_r690863447



##########
File path: core/src/test/java/org/apache/spark/util/collection/TestTimSort.java
##########
@@ -110,22 +110,22 @@ private static int minRunLength(int n) {
    * @param X The sum of the sequence that should be added to runs.
    */
   private static void generateJDKWrongElem(List<Long> runs, int minRun, long 
X) {
-    for (long newTotal; X >= 2 * minRun + 1; X = newTotal) {
+    for (long newTotal; X >= 2L * minRun + 1; X = newTotal) {

Review comment:
       Thank for your review @srowen ~ Overflow may not actually occur, but I 
think it looks safer after change
   
   
   




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

Reply via email to