mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Remove redundant parentheses.
This commit is contained in:
@@ -208,7 +208,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < ((decoded.DataLength - 2) / 18); i++)
|
||||
for(int i = 0; i < (decoded.DataLength - 2) / 18; i++)
|
||||
{
|
||||
decoded.DataPacks[i].HeaderID1 = CDTextResponse[0 + i * 18 + 4];
|
||||
decoded.DataPacks[i].HeaderID2 = CDTextResponse[1 + i * 18 + 4];
|
||||
|
||||
@@ -166,7 +166,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < ((decoded.DataLength - 2) / 11); i++)
|
||||
for(int i = 0; i < (decoded.DataLength - 2) / 11; i++)
|
||||
{
|
||||
decoded.TrackDescriptors[i].SessionNumber = CDFullTOCResponse[0 + i * 11 + 4];
|
||||
decoded.TrackDescriptors[i].ADR = (byte)((CDFullTOCResponse[1 + i * 11 + 4] & 0xF0) >> 4);
|
||||
@@ -202,7 +202,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
foreach(TrackDataDescriptor descriptor in response.TrackDescriptors)
|
||||
{
|
||||
if((descriptor.CONTROL & 0x08) == 0x08 ||
|
||||
(descriptor.ADR != 1 && descriptor.ADR != 5 && descriptor.ADR != 4 && descriptor.ADR != 6) ||
|
||||
descriptor.ADR != 1 && descriptor.ADR != 5 && descriptor.ADR != 4 && descriptor.ADR != 6 ||
|
||||
descriptor.TNO != 0)
|
||||
{
|
||||
sb.AppendLine("Unknown TOC entry format, printing values as-is");
|
||||
|
||||
@@ -153,7 +153,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < ((decoded.DataLength - 2) / 11); i++)
|
||||
for(int i = 0; i < (decoded.DataLength - 2) / 11; i++)
|
||||
{
|
||||
decoded.PMADescriptors[i].Reserved = CDPMAResponse[0 + i * 11 + 4];
|
||||
decoded.PMADescriptors[i].ADR = (byte)((CDPMAResponse[1 + i * 11 + 4] & 0xF0) >> 4);
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < ((decoded.DataLength - 2) / 8); i++)
|
||||
for(int i = 0; i < (decoded.DataLength - 2) / 8; i++)
|
||||
{
|
||||
decoded.TrackDescriptors[i].Reserved1 = CDSessionInfoResponse[0 + i * 8 + 4];
|
||||
decoded.TrackDescriptors[i].ADR = (byte)((CDSessionInfoResponse[1 + i * 8 + 4] & 0xF0) >> 4);
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace DiscImageChef.Decoders.CD
|
||||
return null;
|
||||
}
|
||||
|
||||
for(int i = 0; i < ((decoded.DataLength - 2) / 8); i++)
|
||||
for(int i = 0; i < (decoded.DataLength - 2) / 8; i++)
|
||||
{
|
||||
decoded.TrackDescriptors[i].Reserved1 = CDTOCResponse[0 + i * 8 + 4];
|
||||
decoded.TrackDescriptors[i].ADR = (byte)((CDTOCResponse[1 + i * 8 + 4] & 0xF0) >> 4);
|
||||
|
||||
Reference in New Issue
Block a user