mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: fix UB on MSG_BigShort
This commit is contained in:
@@ -27,7 +27,7 @@ GNU General Public License for more details.
|
||||
static dword BitWriteMasks[32][33];
|
||||
static dword ExtraMasks[32];
|
||||
|
||||
short MSG_BigShort( short swap )
|
||||
unsigned short MSG_BigShort( unsigned short swap )
|
||||
{
|
||||
return (swap >> 8)|(swap << 8);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user