fix some warnings on win32
authornotaz <notasas@gmail.com>
Wed, 15 Jan 2025 19:15:07 +0000 (21:15 +0200)
committernotaz <notasas@gmail.com>
Wed, 15 Jan 2025 19:15:07 +0000 (21:15 +0200)
libpcsxcore/cdriso.c
libpcsxcore/misc.c

index 9282430..4c4bff6 100644 (file)
@@ -1238,7 +1238,7 @@ static int cdread_compressed(FILE *f, unsigned int base, void *dest, int sector)
 
        if (fread(is_compressed ? compr_img->buff_compressed : compr_img->buff_raw[0],
                                1, size, cdHandle) != size) {
-               SysPrintf("read error for block %d at %zx: ", block, start_byte);
+               SysPrintf("read error for block %d at %lx: ", block, (long)start_byte);
                perror(NULL);
                return -1;
        }
index 5b4d81b..1fb045c 100644 (file)
@@ -580,7 +580,7 @@ int Load(const char *ExePath) {
                                                case 0: /* End of file */
                                                        break;
                                                default:
-                                                       SysPrintf(_("Unknown CPE opcode %02x at position %08zx.\n"), opcode, ftell(tmpFile) - 1);
+                                                       SysPrintf(_("Unknown CPE opcode %02x at position %08lx.\n"), opcode, ftell(tmpFile) - 1);
                                                        retval = -1;
                                                        break;
                                        }