mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-23 16:14:04 +00:00
Merge pull request #209 from lioncash/warn
directory_sdmc: Fix a signed/unsigned mismatch comparison
This commit is contained in:
commit
d218a547fa
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ u32 Directory_SDMC::Read(const u32 count, Entry* entries) {
|
||||||
WARN_LOG(FILESYS, "File %s: size=%llu dir=%d", filename.c_str(), file.size, file.isDirectory);
|
WARN_LOG(FILESYS, "File %s: size=%llu dir=%d", filename.c_str(), file.size, file.isDirectory);
|
||||||
|
|
||||||
// TODO(Link Mauve): use a proper conversion to UTF-16.
|
// TODO(Link Mauve): use a proper conversion to UTF-16.
|
||||||
for (int j = 0; j < FILENAME_LENGTH; ++j) {
|
for (size_t j = 0; j < FILENAME_LENGTH; ++j) {
|
||||||
entry.filename[j] = filename[j];
|
entry.filename[j] = filename[j];
|
||||||
if (!filename[j])
|
if (!filename[j])
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue