< prev index next >

src/java.base/share/classes/java/math/MutableBigInteger.java

Print this page

        

*** 770,780 **** } if (carry > 0) { // Result must grow in length resultLen++; if (result.length < resultLen) { ! int temp[] = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. System.arraycopy(result, 0, temp, 1, result.length); temp[0] = 1; result = temp; --- 770,780 ---- } if (carry > 0) { // Result must grow in length resultLen++; if (result.length < resultLen) { ! int[] temp = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. System.arraycopy(result, 0, temp, 1, result.length); temp[0] = 1; result = temp;
*** 836,846 **** } if (carry > 0) { // Result must grow in length resultLen++; if (result.length < resultLen) { ! int temp[] = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. System.arraycopy(result, 0, temp, 1, result.length); temp[0] = 1; result = temp; --- 836,846 ---- } if (carry > 0) { // Result must grow in length resultLen++; if (result.length < resultLen) { ! int[] temp = new int[resultLen]; // Result one word longer from carry-out; copy low-order // bits into new result. System.arraycopy(result, 0, temp, 1, result.length); temp[0] = 1; result = temp;
< prev index next >