Skip to content

Commit f72f9d3

Browse files
committed
1 parent 08c0cba commit f72f9d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/src/main/java/org/jnode/partitions/ibm/IBMPartitionTableEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public long getNbrBlocks(int sectorSize) {
176176
blocks /= (1024f / sectorSize);
177177
odd = getNrSectors() % (1024 / sectorSize);
178178
} else {
179-
blocks *= (sectorSize / 1024f);
179+
blocks = (long) (blocks * (sectorSize / 1024f));
180180
}
181181
return blocks;
182182
}

0 commit comments

Comments
 (0)