Fix some warnings.

This commit is contained in:
Unknown W. Brackets 2013-08-13 21:05:54 -07:00
parent 65d4601140
commit 8ab67b1674
4 changed files with 7 additions and 7 deletions

View file

@ -268,7 +268,7 @@ int VirtualDiscFileSystem::getFileListIndex(std::string& fileName)
fileList.push_back(entry);
return fileList.size()-1;
return (int)fileList.size()-1;
}
int VirtualDiscFileSystem::getFileListIndex(u32 accessBlock, u32 accessSize, bool blockMode)

View file

@ -124,9 +124,9 @@ private:
HandlerFileHandle handler;
VirtualFileType type;
u32 fileIndex;
u32 curOffset;
u32 startOffset; // only used by lbn files
u32 size; // only used by lbn files
u64 curOffset;
u64 startOffset; // only used by lbn files
u64 size; // only used by lbn files
bool Open(std::string& basePath, std::string& fileName, FileAccess access) {
if (handler.IsValid()) {

View file

@ -305,8 +305,8 @@ int sceNetAdhocTerm() {
int sceNetEtherNtostr(const char *mac, u32 bufferPtr) {
DEBUG_LOG(HLE, "UNTESTED sceNetEtherNtostr(%s, %x)", mac, bufferPtr);
if(Memory::IsValidAddress(bufferPtr)) {
size_t len = strlen(mac);
for (size_t i = 0; i < len; i++)
int len = (int)strlen(mac);
for (int i = 0; i < len; i++)
Memory::Write_U8(mac[i], bufferPtr + i);
}
else

View file

@ -136,7 +136,7 @@ NewLanguageScreen::NewLanguageScreen() : ListPopupScreen("Language") {
}
}
if (g_Config.languageIni == code)
selected = i;
selected = (int)i;
listing.push_back(buttonTitle);
}