Assorted warning fixes

This commit is contained in:
Henrik Rydgard 2017-03-04 13:56:15 +01:00
parent 7b3f84aae8
commit d64f367e1d
5 changed files with 8 additions and 8 deletions

View file

@ -91,7 +91,7 @@ size_t CachingFileLoader::ReadAt(s64 absolutePos, size_t bytes, void *data, Flag
if (absolutePos >= filesize_) {
bytes = 0;
} else if (absolutePos + (s64)bytes >= filesize_) {
bytes = filesize_ - absolutePos;
bytes = (size_t)(filesize_ - absolutePos);
}
size_t readSize = 0;