- fixed warning.

This commit is contained in:
Christoph Oelckers 2021-09-19 09:03:45 +02:00
parent 418f55ccf7
commit 24010dc4eb

View file

@ -417,7 +417,7 @@ void GenerateTextureFile(const char *name, const char * pTex, int length, const
int i; int i;
const uint32_t* directory; const uint32_t* directory;
if (maxoff < uint32_t(numtextures + 1) * 4) if (maxoff < (numtextures + 1) * 4)
{ {
printf("%s: Texture directory is too short\n", name); printf("%s: Texture directory is too short\n", name);
return; return;