Fixed build on compilers other than MSVC

No more "Call to 'LittleShort' is ambiguous" error
This commit is contained in:
alexey.lysiuk 2014-08-02 13:14:25 +03:00
parent a600a816c3
commit 6ef67e1d3e

View file

@ -1677,7 +1677,7 @@ void FBehavior::SerializeVarSet (FArchive &arc, SDWORD *vars, int max)
static int ParseLocalArrayChunk(void *chunk, ACSLocalArrays *arrays, int offset)
{
unsigned count = (LittleShort(((unsigned *)chunk)[1]) - 2) / 4;
unsigned count = (LittleShort(static_cast<unsigned short>(((unsigned *)chunk)[1]) - 2)) / 4;
int *sizes = (int *)((BYTE *)chunk + 10);
arrays->Count = count;
if (count > 0)