mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +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)
|
public static int Swap(int x)
|
||||||
{
|
{
|
||||||
x = (int)(((x << 8) & 0xFF00FF00) | ((x >> 8) & 0xFF00FF));
|
x = (int)(((x << 8) & 0xFF00FF00) | (((uint)x >> 8) & 0xFF00FF));
|
||||||
return (x << 16) | ((x >> 16) & 0xFFFF);
|
return (int)(((uint)x << 16) | (((uint)x >> 16) & 0xFFFF));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user