suppress compile warnings

This commit is contained in:
Eric Wasylishen 2016-02-15 15:28:44 -07:00
parent b2687481d6
commit b0777c2075
2 changed files with 3 additions and 3 deletions

View File

@ -1227,7 +1227,7 @@ LoadBSPFile(char *filename, bspdata_t *bspdata)
/*okay, so that's where it *should* be if it exists */
if (bspxofs + sizeof(*bspx) <= flen)
{
uint32_t xlumps;
int xlumps;
const bspx_lump_t *xlump;
bspx = (const bspx_header_t*)((const byte*)header + bspxofs);
xlump = (const bspx_lump_t*)(bspx+1);
@ -1561,7 +1561,7 @@ PrintBSPFileSizes(const bspdata_t *bspdata)
{
bspxentry_t *x;
for (x = bspdata->bspxentries; x; x = x->next) {
logprint("%7s %-12s %10i\n", "BSPX", x->lumpname, x->lumpsize);
logprint("%7s %-12s %10i\n", "BSPX", x->lumpname, (int)x->lumpsize);
}
}
}

View File

@ -1284,7 +1284,7 @@ WriteEntitiesToString(bsp2_t *bsp)
epair->key, value);
if (parse_escape_sequences) {
free(value);
free((void *)value);
}
pos += length;