engine: fix UB on MSG_BigShort

This commit is contained in:
Alibek Omarov
2021-03-07 03:39:16 +03:00
parent 6cc2205321
commit efaf7ac622
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}