diff options
| author | Marcus Wanners <marcus@wanners.net> | 2009-03-05 15:58:14 +0000 |
|---|---|---|
| committer | Marcus Wanners <marcus@wanners.net> | 2009-03-05 15:58:14 +0000 |
| commit | c0cf64177976ea562a5ea113dd61d72bfd0261c9 (patch) | |
| tree | c2df3688239165bf97073934245b7680bfbd604f /Source/Core/DiscIO/Src/NANDContentLoader.cpp | |
| parent | 67af94c339c8fcb3d454c0b42b36e3ce8104f923 (diff) | |
Linux compile fix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2559 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/NANDContentLoader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/Src/NANDContentLoader.cpp b/Source/Core/DiscIO/Src/NANDContentLoader.cpp index 44045f5d6e..ff56b2c6ae 100644 --- a/Source/Core/DiscIO/Src/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/Src/NANDContentLoader.cpp @@ -106,8 +106,8 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath) return false;
}
u64 Size = File::GetSize(TMDFileName.c_str());
- u8* pTMD = new u8[unsigned int(Size)];
- fread(pTMD, size_t(Size), 1, pTMDFile);
+ u8* pTMD = new u8[(u32)Size];
+ fread(pTMD, (size_t)Size, 1, pTMDFile);
fclose(pTMDFile);
//////
@@ -135,11 +135,11 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath) if (pFile != NULL)
{
u64 Size = File::GetSize(szFilename);
- rContent.m_pData = new u8[unsigned int(Size)];
+ rContent.m_pData = new u8[(u32)Size];
_dbg_assert_msg_(BOOT, rContent.m_Size==Size, "TMDLoader: Filesize doesnt fit (%s %i)", szFilename, i);
- fread(rContent.m_pData, size_t(Size), 1, pFile);
+ fread(rContent.m_pData, (size_t)Size, 1, pFile);
fclose(pFile);
} else {
ERROR_LOG(DISCIO, "CreateFromDirectory: error opening %s",
|
