aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotaz2014-12-06 22:52:05 +0200
committerAdrien Plazas2014-12-07 09:35:02 +0100
commit52990dd97f8a7abbe5b24d3405f3bcc3ba426e5d (patch)
treedecc30d337005061b294f8f30371d373f74a425a
parentd515eaa2e43d87a2fe7d54b7f7b30174631f2d18 (diff)
downloadpcsx_rearmed-52990dd97f8a7abbe5b24d3405f3bcc3ba426e5d.tar.gz
pcsx_rearmed-52990dd97f8a7abbe5b24d3405f3bcc3ba426e5d.tar.bz2
pcsx_rearmed-52990dd97f8a7abbe5b24d3405f3bcc3ba426e5d.zip
misc: length is unsigned
-rw-r--r--libpcsxcore/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index 905f142..a27f60f 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])) {