- fixed Linux warning with type cast.

This commit is contained in:
Christoph Oelckers 2014-05-13 12:00:11 +02:00
parent 579eff5b96
commit 60f0ab5f1b

View file

@ -64,7 +64,7 @@ public:
} }
unsigned int GetCount(FFlatVertex *newptr, unsigned int *poffset) unsigned int GetCount(FFlatVertex *newptr, unsigned int *poffset)
{ {
unsigned int newofs = unsigned int(newptr - map); unsigned int newofs = (unsigned int)(newptr - map);
unsigned int diff = newofs - mCurIndex; unsigned int diff = newofs - mCurIndex;
*poffset = mCurIndex; *poffset = mCurIndex;
mCurIndex = newofs; mCurIndex = newofs;