core, fix loading and mapping for images > 4MB

This commit is contained in:
kub 2021-09-30 21:57:22 +02:00
parent 6985cdd8a9
commit eb3b1f9d72
2 changed files with 2 additions and 1 deletions

View file

@ -772,7 +772,7 @@ int PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize,int is_sms)
ret = pm_read(p,todo,f);
bytes_read += ret;
p += ret;
PicoCartLoadProgressCB(bytes_read * 100 / size);
PicoCartLoadProgressCB(bytes_read * 100LL / size);
}
while (ret > 0);
}