Skip to content

Commit

Permalink
Make type cast explicit when calculating image count
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Feb 24, 2025
1 parent 1d58269 commit 6336db9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ protected void initFile(String id) throws FormatException, IOException {

m.imageCount = (int) Math.max(nSlice, 1);
if (maxim > 0) {
m.imageCount *= maxim;
m.imageCount = (int) (maxim * m.imageCount);
}
m.sizeZ = getImageCount();
m.sizeC = 1;
Expand Down

0 comments on commit 6336db9

Please sign in to comment.