Linux: Fixed compilation warnings/errors
This commit is contained in:
parent
df79dc9cc1
commit
559f989dce
4 changed files with 5 additions and 4 deletions
|
@ -71,7 +71,7 @@ void CheatManager::AddStringCheat(string code)
|
||||||
|
|
||||||
if(code.size() == 9 && code[4] == '-') {
|
if(code.size() == 9 && code[4] == '-') {
|
||||||
uint32_t rawValue = 0;
|
uint32_t rawValue = 0;
|
||||||
for(int i = 0; i < code.size(); i++) {
|
for(int i = 0; i < (int)code.size(); i++) {
|
||||||
if(code[i] != '-') {
|
if(code[i] != '-') {
|
||||||
rawValue <<= 4;
|
rawValue <<= 4;
|
||||||
size_t pos = _convertTable.find_first_of(code[i]);
|
size_t pos = _convertTable.find_first_of(code[i]);
|
||||||
|
@ -98,7 +98,7 @@ void CheatManager::AddStringCheat(string code)
|
||||||
|
|
||||||
AddCheat(cheat);
|
AddCheat(cheat);
|
||||||
} else if(code.size() == 8) {
|
} 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')) {
|
if((code[i] < 'A' || code[i] > 'F') && (code[i] < '0' && code[i] > '9')) {
|
||||||
//Invalid code
|
//Invalid code
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -121,7 +121,7 @@ void InputHud::DrawControllers(OverscanDimensions overscan, int frameNumber)
|
||||||
break;
|
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(controllerData[i].Type == ControllerType::SnesController) {
|
||||||
if(cfg.DisplayInputPort[i]) {
|
if(cfg.DisplayInputPort[i]) {
|
||||||
DrawController(i, controllerData[i].State, xStart, yStart, frameNumber);
|
DrawController(i, controllerData[i].State, xStart, yStart, frameNumber);
|
||||||
|
|
|
@ -32,7 +32,7 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Reset();
|
void Reset();
|
||||||
__declspec(noinline) void ValidateFrame();
|
void ValidateFrame();
|
||||||
void SaveFrame();
|
void SaveFrame();
|
||||||
void Save();
|
void Save();
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <deque>
|
#include <deque>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include "../Utilities/UTF8Util.h"
|
#include "../Utilities/UTF8Util.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue