core: fix archive.cpp warning on MSVC

This commit is contained in:
Kloen 2017-01-24 10:56:13 +01:00
parent 418d15da08
commit cb1ed3fc0a

View File

@ -218,7 +218,7 @@ void Directory::HandleSyncRequest(Kernel::SharedPtr<Kernel::ServerSession> serve
LOG_TRACE(Service_FS, "Read %s: count=%d", GetName().c_str(), count); LOG_TRACE(Service_FS, "Read %s: count=%d", GetName().c_str(), count);
// Number of entries actually read // Number of entries actually read
u32 read = backend->Read(entries.size(), entries.data()); u32 read = backend->Read(static_cast<u32>(entries.size()), entries.data());
cmd_buff[2] = read; cmd_buff[2] = read;
Memory::WriteBlock(address, entries.data(), read * sizeof(FileSys::Entry)); Memory::WriteBlock(address, entries.data(), read * sizeof(FileSys::Entry));
break; break;