mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Add parentheses to avoid non-obvious precedence.
This commit is contained in:
@@ -608,7 +608,7 @@ namespace DiscImageChef.Core.Devices.Report
|
||||
{
|
||||
#pragma warning disable IDE0004 // Cast is necessary, otherwise incorrect value is created
|
||||
physicalsectorsize =
|
||||
(uint)(logicalsectorsize * (1 << ataId.PhysLogSectorSize & 0xF));
|
||||
(uint)(logicalsectorsize * ((1 << ataId.PhysLogSectorSize) & 0xF));
|
||||
#pragma warning restore IDE0004 // Cast is necessary, otherwise incorrect value is created
|
||||
}
|
||||
else physicalsectorsize = logicalsectorsize;
|
||||
|
||||
Reference in New Issue
Block a user