diff --git a/src/gen/lib/dotgen/mincross__c.java b/src/gen/lib/dotgen/mincross__c.java index e9017c8781c..82111feafc7 100644 --- a/src/gen/lib/dotgen/mincross__c.java +++ b/src/gen/lib/dotgen/mincross__c.java @@ -209,7 +209,8 @@ public static ST_adjmatrix_t new_matrix(int i, int j) { // Arnaud 15/09/2022: the j+1 is needed in some case to avoid ArrayIndexOutOfBoundsException // Arnaud 02/03/2023: the j+3 is needed in some case to avoid ArrayIndexOutOfBoundsException // Arnaud 15/03/2023: the i+3 is needed in some case to avoid ArrayIndexOutOfBoundsException when LR direction - rv.data = new int[i+3][j+3]; // Or maybe new int[j][i] ? + // Arnaud 20/12/2024: Even bigger + rv.data = new int[Math.max(i, j) + 8][Math.max(i, j) + 8]; return rv; } finally { LEAVING("756bre1tpxb1tq68p7xhkrxkc","new_matrix");