From: notaz Date: Wed, 12 Sep 2012 23:43:13 +0000 (+0300) Subject: silence some 64bit related warnings X-Git-Tag: r16~19 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c979c3ee0d0bc6bece799a6f4013993d7cb2d5f3;p=pcsx_rearmed.git silence some 64bit related warnings still need to fix savestate compat --- 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;