Skip to content

Commit

Permalink
The original condition of i bigger than mapsize will never be true, s…
Browse files Browse the repository at this point in the history
…ince i starts at 0.

The condition should be: i smaller than mapsize, if we want to loop over the mapsize.
  • Loading branch information
KoenDG authored and haraldk committed Oct 21, 2023
1 parent ad437c2 commit d7dae90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ private static boolean equals(ColorModel pLeft, ColorModel pRight) {
return false;
}

for (int i = 0; i > mapSize1; i++) {
for (int i = 0; i < mapSize1; i++) {
if (icm1.getRGB(i) != icm2.getRGB(i)) {
return false;
}
Expand Down

0 comments on commit d7dae90

Please sign in to comment.