Fixed compilation warnings

This commit is contained in:
Souryo 2017-10-07 21:47:35 -04:00
parent 79bad3992c
commit ab91bef2b0
3 changed files with 3 additions and 3 deletions

View file

@ -388,7 +388,7 @@ struct KeyCombination
vector<uint32_t> otherKeys = keyCombination.GetKeys();
if(otherKeys.size() > myKeys.size()) {
for(int i = 0; i < myKeys.size(); i++) {
for(size_t i = 0; i < myKeys.size(); i++) {
if(std::find(otherKeys.begin(), otherKeys.end(), myKeys[i]) == otherKeys.end()) {
//Current key combination contains a key not found in the other combination, so it's not a subset
return false;

View file

@ -192,7 +192,7 @@ void ShortcutKeyHandler::ProcessKeys()
if(_pressedKeys.size() == _lastPressedKeys.size()) {
bool noChange = true;
for(int i = 0; i < _pressedKeys.size(); i++) {
for(size_t i = 0; i < _pressedKeys.size(); i++) {
if(_pressedKeys[i] != _lastPressedKeys[i]) {
noChange = false;
break;

View file

@ -71,7 +71,7 @@ void VirtualFile::LoadFile()
if(reader) {
if(_innerFileIndex >= 0) {
vector<string> filelist = reader->GetFileList(VirtualFile::RomExtensions);
if(filelist.size() > _innerFileIndex) {
if((int32_t)filelist.size() > _innerFileIndex) {
reader->ExtractFile(filelist[_innerFileIndex], _data);
}
} else {