misc: length is unsigned
authornotaz <notasas@gmail.com>
Sat, 6 Dec 2014 20:52:05 +0000 (22:52 +0200)
committerAdrien Plazas <kekun.plazas@laposte.net>
Sun, 7 Dec 2014 08:35:02 +0000 (09:35 +0100)
libpcsxcore/misc.c

index 905f142..a27f60f 100644 (file)
@@ -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])) {