summaryrefslogtreecommitdiff
path: root/apps/plugins/doom/d_deh.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/d_deh.c')
-rwxr-xr-xapps/plugins/doom/d_deh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/doom/d_deh.c b/apps/plugins/doom/d_deh.c
index 2aa9b83422..632146868e 100755
--- a/apps/plugins/doom/d_deh.c
+++ b/apps/plugins/doom/d_deh.c
@@ -1466,7 +1466,7 @@ void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum)
1466 // killough 10/98: allow DEH files to come from wad lumps 1466 // killough 10/98: allow DEH files to come from wad lumps
1467 if (filename) 1467 if (filename)
1468 { 1468 {
1469 if ((int)(infile.inp = (void *) open(filename,O_RDONLY))<0) 1469 if ((intptr_t)(infile.inp = (void *)(intptr_t)open(filename,O_RDONLY))<0)
1470 { 1470 {
1471 printf( "-deh file %s not found\n",filename); 1471 printf( "-deh file %s not found\n",filename);
1472 return; // should be checked up front anyway 1472 return; // should be checked up front anyway
@@ -1558,7 +1558,7 @@ void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum)
1558 if (infile.lump) 1558 if (infile.lump)
1559 W_UnlockLumpNum(lumpnum); // Mark purgable 1559 W_UnlockLumpNum(lumpnum); // Mark purgable
1560 else 1560 else
1561 close((int) infile.inp); // Close real file 1561 close((int)(intptr_t) infile.inp); // Close real file
1562 1562
1563 close(fileout); 1563 close(fileout);
1564} 1564}