From 32922925dfd3d323de24ac1c7f25dd60eeb59f53 Mon Sep 17 00:00:00 2001
From: notaz <notasas@gmail.com>
Date: Wed, 15 Jan 2025 21:15:07 +0200
Subject: [PATCH] fix some warnings on win32

---
 libpcsxcore/cdriso.c | 2 +-
 libpcsxcore/misc.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libpcsxcore/cdriso.c b/libpcsxcore/cdriso.c
index 9282430f..4c4bff6f 100644
--- a/libpcsxcore/cdriso.c
+++ b/libpcsxcore/cdriso.c
@@ -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;
 	}
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index 5b4d81b9..1fb045ce 100644
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -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;
 					}
-- 
2.39.5