Fixed compilation warnings
This commit is contained in:
parent
79bad3992c
commit
ab91bef2b0
3 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue