REFACTOR: Remove redundant parentheses.

This commit is contained in:
2017-12-20 17:26:28 +00:00
parent a4650c61aa
commit b0936d51c5
160 changed files with 1096 additions and 1106 deletions

View File

@@ -270,18 +270,18 @@ namespace DiscImageChef.Decoders.Floppy
if(i < 86)
{
output[i] |= (byte)((((buffer[i] & 1) << 1)) & 0xFF);
output[i] |= (byte)((((buffer[i] & 2) >> 1)) & 0xFF);
output[i] |= (byte)((buffer[i] & 1) << 1 & 0xFF);
output[i] |= (byte)((buffer[i] & 2) >> 1 & 0xFF);
}
else if(i < 86 * 2)
{
output[i] |= (byte)((((buffer[i - 86] & 4) >> 1)) & 0xFF);
output[i] |= (byte)((((buffer[i - 86] & 8) >> 3)) & 0xFF);
output[i] |= (byte)((buffer[i - 86] & 4) >> 1 & 0xFF);
output[i] |= (byte)((buffer[i - 86] & 8) >> 3 & 0xFF);
}
else
{
output[i] |= (byte)((((buffer[i - 86 * 2] & 0x10) >> 3)) & 0xFF);
output[i] |= (byte)((((buffer[i - 86 * 2] & 0x20) >> 5)) & 0xFF);
output[i] |= (byte)((buffer[i - 86 * 2] & 0x10) >> 3 & 0xFF);
output[i] |= (byte)((buffer[i - 86 * 2] & 0x20) >> 5 & 0xFF);
}
}