Fixed gsize type

This commit is contained in:
Martijn de Vos committed 2024-12-24 09:06:06 +01:00
1 parent fa0981b602
commit 7022646c4d
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ static void ipod_touch_memory_setup(MachineState *machine, MemoryRegion *sysmem,
// load the bootrom (vrom) // load the bootrom (vrom)
uint8_t *file_data = NULL; uint8_t *file_data = NULL;
unsigned long fsize; gsize fsize;
if (g_file_get_contents(nms->bootrom_path, (char **)&file_data, &fsize, NULL)) { if (g_file_get_contents(nms->bootrom_path, (char **)&file_data, &fsize, NULL)) {
allocate_ram(sysmem, "vrom", 0x0, 0x20000); allocate_ram(sysmem, "vrom", 0x0, 0x20000);
address_space_rw(nsas, VROM_MEM_BASE, MEMTXATTRS_UNSPECIFIED, (uint8_t *)file_data, fsize, 1); address_space_rw(nsas, VROM_MEM_BASE, MEMTXATTRS_UNSPECIFIED, (uint8_t *)file_data, fsize, 1);