aboutsummaryrefslogtreecommitdiff
path: root/source/nds/draw.c
diff options
context:
space:
mode:
authoraliaspider2014-10-28 05:39:03 +0100
committeraliaspider2014-10-28 05:39:03 +0100
commit76fef9625dd83399979a653b74f377f730725a70 (patch)
treef043e3774bc36acd7af98a2e8c3beb4a6fcbbf88 /source/nds/draw.c
parent5a96997f186b2cff1a24ed5572430fe0f031e8d3 (diff)
downloadsnesemu-76fef9625dd83399979a653b74f377f730725a70.tar.gz
snesemu-76fef9625dd83399979a653b74f377f730725a70.tar.bz2
snesemu-76fef9625dd83399979a653b74f377f730725a70.zip
64-bit safer
Diffstat (limited to 'source/nds/draw.c')
-rw-r--r--source/nds/draw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/nds/draw.c b/source/nds/draw.c
index 9a96e43..6344f5b 100644
--- a/source/nds/draw.c
+++ b/source/nds/draw.c
@@ -884,7 +884,7 @@ int show_background(void *screen, char *bgname)
ret= BMP_read(bgname, buff, 256, 192, &type);
if(ret != BMP_OK)
{
- free((int)buff);
+ free((intptr_t)buff);
return(-1);
}
@@ -919,11 +919,11 @@ int show_background(void *screen, char *bgname)
}
else
{
- free((int)buff);
+ free((intptr_t)buff);
return(-1);
}
- free((int)src);
+ free((intptr_t)src);
strcpy(back_ground.bgname, bgname);
}
@@ -1101,7 +1101,7 @@ int icon_init(u32 language_id)
printf("GUI buff %d\n", icondst - gui_picture);
#endif
- free((int)src);
+ free((intptr_t)src);
#endif
return ret;