Linux: Fixed compilation warnings/errors

This commit is contained in:
Sour 2019-10-19 15:39:20 -04:00
parent df79dc9cc1
commit 559f989dce
4 changed files with 5 additions and 4 deletions

View file

@ -71,7 +71,7 @@ void CheatManager::AddStringCheat(string code)
if(code.size() == 9 && code[4] == '-') {
uint32_t rawValue = 0;
for(int i = 0; i < code.size(); i++) {
for(int i = 0; i < (int)code.size(); i++) {
if(code[i] != '-') {
rawValue <<= 4;
size_t pos = _convertTable.find_first_of(code[i]);
@ -98,7 +98,7 @@ void CheatManager::AddStringCheat(string code)
AddCheat(cheat);
} else if(code.size() == 8) {
for(int i = 0; i < code.size(); i++) {
for(int i = 0; i < (int)code.size(); i++) {
if((code[i] < 'A' || code[i] > 'F') && (code[i] < '0' && code[i] > '9')) {
//Invalid code
return;

View file

@ -121,7 +121,7 @@ void InputHud::DrawControllers(OverscanDimensions overscan, int frameNumber)
break;
}
for(int i = 0; i < controllerData.size(); i++) {
for(int i = 0; i < (int)controllerData.size(); i++) {
if(controllerData[i].Type == ControllerType::SnesController) {
if(cfg.DisplayInputPort[i]) {
DrawController(i, controllerData[i].State, xStart, yStart, frameNumber);

View file

@ -32,7 +32,7 @@ private:
private:
void Reset();
__declspec(noinline) void ValidateFrame();
void ValidateFrame();
void SaveFrame();
void Save();

View file

@ -21,6 +21,7 @@
#include <atomic>
#include <thread>
#include <deque>
#include <algorithm>
#include "../Utilities/UTF8Util.h"