You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} elseif (row < 0 || row > mRows) { // Check for the index is out of bounds
JMatrixUtils.raiseError(newInvalidIndexException(
String.format("Given row index is out of range: %d",
(row < 0) ? (row - mRows - 1) : row
)
));
It should be like this:
- } else if (row < 0 || row > mRows) { // Check for the index is out of bounds+ } else if (row < 0 || row >= mRows) { // Check for the index is out of bounds
Where the given row must be lower than (and not equals) to mRows (the total rows of the matrix).
There's a bad logic inside the body
insertRow
method on row index checker.jmatrix/src/main/java/com/mitsuki/jmatrix/Matrix.java
Lines 958 to 963 in ebd80dd
It should be like this:
Where the given
row
must be lower than (and not equals) tomRows
(the total rows of the matrix).Originally posted by @mitsuki31 in #108 (review)
The text was updated successfully, but these errors were encountered: