mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Change signed shift to unsigned shift
This commit is contained in:
@@ -134,8 +134,8 @@ namespace DiscImageChef
|
||||
|
||||
public static int Swap(int x)
|
||||
{
|
||||
x = (int)(((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF));
|
||||
return (x << 16) | ((x >> 16) & 0xFFFF);
|
||||
x = (int)(((x << 8) & 0xFF00FF00) | (((uint)x >> 8) & 0xFF00FF));
|
||||
return (int)(((uint)x << 16) | (((uint)x >> 16) & 0xFFFF));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user