silence some 64bit related warnings
authornotaz <notasas@gmail.com>
Wed, 12 Sep 2012 23:43:13 +0000 (02:43 +0300)
committernotaz <notasas@gmail.com>
Wed, 12 Sep 2012 23:43:13 +0000 (02:43 +0300)
still need to fix savestate compat

frontend/menu.c
libpcsxcore/psxbios.c
plugins/cdrcimg/cdrcimg.c

index 7d360d5..42a53e1 100644 (file)
@@ -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;
                }
        }
index e4fcad3..81a40aa 100644 (file)
@@ -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;
 }
index dd1cf57..e327500 100644 (file)
@@ -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;