Explicit cast

This commit is contained in:
Yamagi Burmeister 2012-06-02 09:07:20 +02:00
parent 32fe0ba21f
commit fc679896f5

View file

@ -338,7 +338,7 @@ SCR_ReadNextFrame(void) {
FS_Read(&size, 4, (size_t)cl.cinematic_file);
size = LittleLong(size);
if (size > sizeof(compressed) || size < 1)
if ((unsigned long)size > sizeof(compressed) || size < 1)
Com_Error(ERR_DROP, "Bad compressed frame size");
FS_Read(compressed, size, (size_t)cl.cinematic_file);