Fix a compiler warning on 32 bit.

Hopefully we'll never allocate more than 2^32 bytes of memory for
surfaces. :)
This commit is contained in:
Yamagi Burmeister 2018-02-05 18:27:34 +01:00
parent 68e1cb6d00
commit ba4f91f619

View file

@ -404,7 +404,7 @@ void R_NewMap (void)
surfaces = malloc (r_cnumsurfs * sizeof(surf_t));
if (!surfaces)
{
R_Printf(PRINT_ALL, "R_NewMap: Couldn't malloc %ld bytes\n", r_cnumsurfs * sizeof(surf_t));
R_Printf(PRINT_ALL, "R_NewMap: Couldn't malloc %d bytes\n", (int)(r_cnumsurfs * sizeof(surf_t)));
return;
}