Skip to content

Commit 6336db9

Browse files
Make type cast explicit when calculating image count
1 parent 1d58269 commit 6336db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/formats-gpl/src/loci/formats/in/SpiderReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ protected void initFile(String id) throws FormatException, IOException {
246246

247247
m.imageCount = (int) Math.max(nSlice, 1);
248248
if (maxim > 0) {
249-
m.imageCount *= maxim;
249+
m.imageCount = (int) (maxim * m.imageCount);
250250
}
251251
m.sizeZ = getImageCount();
252252
m.sizeC = 1;

0 commit comments

Comments
 (0)