Skip to content

Commit

Permalink
I'm such a moron
Browse files Browse the repository at this point in the history
  • Loading branch information
azertyfun committed Sep 8, 2016
1 parent 5594f4c commit 0780da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tk/azertyfun/dcputoolchain/emulator/M35FD.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected M35FD(String id, String path, boolean little_endian) throws IOExceptio
disk[j] |= (char) (disk_b[j * 2 + 1] << 8);
}
} else {
for (int j = 0; j < Math.min(disk_b.length / 2, disk.length) / 2; ++j) {
for (int j = 0; j < Math.min(disk_b.length / 2, disk.length); ++j) {
disk[j] = (char) (disk_b[j * 2] << 8);
disk[j] |= (char) (disk_b[j * 2 + 1] & 0xFF);
}
Expand Down

0 comments on commit 0780da9

Please sign in to comment.