From c979c3ee0d0bc6bece799a6f4013993d7cb2d5f3 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 13 Sep 2012 02:43:13 +0300 Subject: [PATCH] silence some 64bit related warnings still need to fix savestate compat --- frontend/menu.c | 4 ++-- libpcsxcore/psxbios.c | 2 +- plugins/cdrcimg/cdrcimg.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/menu.c b/frontend/menu.c index 7d360d58..42a53e1d 100644 --- a/frontend/menu.c +++ b/frontend/menu.c @@ -364,7 +364,7 @@ static int menu_write_config(int is_game) break; default: printf("menu_write_config: unhandled len %d for %s\n", - config_data[i].len, config_data[i].name); + (int)config_data[i].len, config_data[i].name); break; } } @@ -479,7 +479,7 @@ static int menu_load_config(int is_game) break; default: printf("menu_load_config: unhandled len %d for %s\n", - config_data[i].len, config_data[i].name); + (int)config_data[i].len, config_data[i].name); break; } } diff --git a/libpcsxcore/psxbios.c b/libpcsxcore/psxbios.c index e4fcad39..81a40aac 100644 --- a/libpcsxcore/psxbios.c +++ b/libpcsxcore/psxbios.c @@ -939,7 +939,7 @@ void psxBios_InitHeap() { // 0x39 heap_end = (u32 *)((u8 *)heap_addr + size); *heap_addr = SWAP32(size | 1); - SysPrintf("InitHeap %x,%x : %x %x\n",a0,a1, (uptr)heap_addr-(uptr)psxM, size); + SysPrintf("InitHeap %x,%x : %x %x\n",a0,a1, (int)((uptr)heap_addr-(uptr)psxM), size); pc0 = ra; } diff --git a/plugins/cdrcimg/cdrcimg.c b/plugins/cdrcimg/cdrcimg.c index dd1cf57b..e3275001 100644 --- a/plugins/cdrcimg/cdrcimg.c +++ b/plugins/cdrcimg/cdrcimg.c @@ -212,7 +212,7 @@ static long CDRreadTrack(unsigned char *time) } if (cdbuffer_size != sizeof(cdbuffer->raw[0]) * cd_sectors_per_blk) err("cdbuffer_size: %lu != %d, sector %d\n", cdbuffer_size, - sizeof(cdbuffer->raw[0]) * cd_sectors_per_blk, sector); + (int)sizeof(cdbuffer->raw[0]) * cd_sectors_per_blk, sector); // done at last! current_block = block; -- 2.39.5