mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Possible loss of fraction.
This commit is contained in:
@@ -1048,7 +1048,7 @@ namespace DiscImageChef.DiscImages
|
||||
case TYPE_DIFFERENCING:
|
||||
{
|
||||
// Block number for BAT searching
|
||||
uint blockNumber = (uint)Math.Floor((double)(sectorAddress / (thisDynamic.BlockSize / 512)));
|
||||
uint blockNumber = (uint)Math.Floor((sectorAddress / (thisDynamic.BlockSize / 512.0)));
|
||||
// Sector number inside of block
|
||||
uint sectorInBlock = (uint)(sectorAddress % (thisDynamic.BlockSize / 512));
|
||||
|
||||
@@ -1131,7 +1131,7 @@ namespace DiscImageChef.DiscImages
|
||||
Stream thisStream;
|
||||
|
||||
// Block number for BAT searching
|
||||
uint blockNumber = (uint)Math.Floor((double)(sectorAddress / (thisDynamic.BlockSize / 512)));
|
||||
uint blockNumber = (uint)Math.Floor((sectorAddress / (thisDynamic.BlockSize / 512.0)));
|
||||
// Sector number inside of block
|
||||
uint sectorInBlock = (uint)(sectorAddress % (thisDynamic.BlockSize / 512));
|
||||
// How many sectors before reaching end of block
|
||||
|
||||
Reference in New Issue
Block a user