From 1c2c2bfb00e4040a17f61e7aa2061d446ba44b76 Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 6 Dec 2014 22:52:05 +0200 Subject: [PATCH] misc: length is unsigned --- libpcsxcore/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 905f1423..a27f60fb 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -123,7 +123,7 @@ int GetCdromFile(u8 *mdir, u8 *time, char *filename) { if (dir->length[0] == 0) { return -1; } - i += dir->length[0]; + i += (u8)dir->length[0]; if (dir->flags[0] & 0x2) { // it's a dir if (!strnicmp((char *)&dir->name[0], filename, dir->name_len[0])) { -- 2.39.5