From 320c5f254509feefc2e9a8c0c97310e0c9fbb8f1 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 29 Nov 2014 09:34:19 -0500 Subject: [PATCH] Cast the result of GetSize() to "unsigned long long". Squelches a warning on Mac OS X. --- Source/Core/DolphinQt/GameList/GameFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/GameList/GameFile.cpp b/Source/Core/DolphinQt/GameList/GameFile.cpp index 70cd91b64c..4cfe616e18 100644 --- a/Source/Core/DolphinQt/GameList/GameFile.cpp +++ b/Source/Core/DolphinQt/GameList/GameFile.cpp @@ -225,9 +225,9 @@ QString GameFile::CreateCacheFilename() // Filename.extension_HashOfFolderPath_Size.cache // Append hash to prevent ISO name-clashing in different folders. - filename.append(StringFromFormat("%s_%x_%lx.qcache", + filename.append(StringFromFormat("%s_%x_%llx.qcache", extension.c_str(), HashFletcher((const u8*)pathname.c_str(), pathname.size()), - File::GetSize(m_file_name.toStdString()))); + (unsigned long long)File::GetSize(m_file_name.toStdString()))); QString fullname = QString::fromStdString(File::GetUserPath(D_CACHE_IDX)); fullname += QString::fromStdString(filename);