summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cdrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/cdrom.c')
-rw-r--r--src/lib/util/cdrom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/cdrom.c b/src/lib/util/cdrom.c
index 03427cb0a54..152c73cea4a 100644
--- a/src/lib/util/cdrom.c
+++ b/src/lib/util/cdrom.c
@@ -115,7 +115,7 @@ cdrom_file *cdrom_open(chd_file *chd)
return NULL;
/* allocate memory for the CD-ROM file */
- file = malloc(sizeof(cdrom_file));
+ file = (cdrom_file *)malloc(sizeof(cdrom_file));
if (file == NULL)
return NULL;
@@ -163,7 +163,7 @@ cdrom_file *cdrom_open(chd_file *chd)
file->cdtoc.tracks[i].chdframeofs = chdofs;
/* allocate a cache */
- file->cache = malloc(chd_get_header(chd)->hunkbytes);
+ file->cache = (UINT8 *)malloc(chd_get_header(chd)->hunkbytes);
if (file->cache == NULL)
{
free(file);