summaryrefslogtreecommitdiff
path: root/apps/plugins/doom
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-12-17 14:47:12 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-12-17 14:47:12 +0000
commit84a013ea419efd0373846741b812d7ccf78881b9 (patch)
tree3546180752780ff810ccb529c43f9101548cbc43 /apps/plugins/doom
parentd4a46cba3018d6f3ebf440d41d7b9014a8e405df (diff)
downloadrockbox-84a013ea419efd0373846741b812d7ccf78881b9.zip
rockbox-84a013ea419efd0373846741b812d7ccf78881b9.tar.gz
rockbox-84a013ea419efd0373846741b812d7ccf78881b9.tar.bz2
rockbox-84a013ea419efd0373846741b812d7ccf78881b9.tar.xz
Attempt at fixing 64-bit sim warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom')
-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 2aa9b83..6321468 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)
// killough 10/98: allow DEH files to come from wad lumps
if (filename)
{
- if ((int)(infile.inp = (void *) open(filename,O_RDONLY))<0)
+ if ((intptr_t)(infile.inp = (void *)(intptr_t)open(filename,O_RDONLY))<0)
{
printf( "-deh file %s not found\n",filename);
return; // should be checked up front anyway
@@ -1558,7 +1558,7 @@ void ProcessDehFile(const char *filename, const char *outfilename, int lumpnum)
if (infile.lump)
W_UnlockLumpNum(lumpnum); // Mark purgable
else
- close((int) infile.inp); // Close real file
+ close((int)(intptr_t) infile.inp); // Close real file
close(fileout);
}