Skip to content

Commit

Permalink
Fixed bug in ArrayUtils.equals when applied to arrays of long.
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg committed Oct 7, 2015
1 parent 95a5bd6 commit 088b954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matlabcontrol/src/matlabcontrol/link/ArrayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ else if (array1 != null && array2 != null && array1.getClass().equals(array2.get
} else if (array1 instanceof int[] && array2 instanceof int[]) {
equal = Arrays.equals((int[]) array1, (int[]) array2);
} else if (array1 instanceof long[] && array2 instanceof long[]) {
equal = Arrays.equals((byte[]) array1, (byte[]) array2);
equal = Arrays.equals((long[]) array1, (long[]) array2);
} else if (array1 instanceof float[] && array2 instanceof float[]) {
equal = Arrays.equals((float[]) array1, (float[]) array2);
} else if (array1 instanceof double[] && array2 instanceof double[]) {
Expand Down

0 comments on commit 088b954

Please sign in to comment.