pcsx2/plugin: sign compare mismatch extra

This commit is contained in:
Gregory Hainaut 2014-04-14 21:32:55 +02:00
parent 5087d13de8
commit 4d78b6be31
8 changed files with 10 additions and 10 deletions

View File

@ -44,7 +44,7 @@ static __fi void SetResultSize(u8 size)
cdvd.sDataIn&=~0x40;
}
static void CDVDREAD_INT(int eCycle)
static void CDVDREAD_INT(u32 eCycle)
{
// Give it an arbitary FAST value. Good for ~5000kb/s in ULE when copying a file from CDVD to HDD
// Keep long seeks out though, as games may try to push dmas while seeking. (Tales of the Abyss)

View File

@ -224,7 +224,7 @@ int LoadCheatsFromZip(wxString gameCRC, const wxString& cheatsArchiveFilename) {
{
wxString name = entry->GetName();
name.MakeUpper();
if (name.Find(gameCRC) == 0 && name.Find(L".PNACH") == name.Length()-6) {
if (name.Find(gameCRC) == 0 && name.Find(L".PNACH")+6u == name.Length()) {
Console.WriteLn(Color_Gray, L"Loading patch '%s' from archive '%s'",
entry->GetName().c_str(), cheatsArchiveFilename.c_str());
wxTextInputStream pnach(zip);

View File

@ -558,7 +558,7 @@ void __fastcall eeloadReplaceOSDSYS()
cdvdReloadElfInfo();
// didn't recognize an ELF
if (ElfEntry == -1) {
if (ElfEntry == 0xFFFFFFFF) {
eeGameStarting();
return;
}

View File

@ -78,7 +78,7 @@ int _SPR0chain()
pMem = SPRdmaGetAddr(spr0ch.madr, true);
if (pMem == NULL) return -1;
if(spr0ch.madr >= dmacRegs.rbor.ADDR && spr0ch.madr < (dmacRegs.rbor.ADDR + dmacRegs.rbsr.RMSK + 16))
if(spr0ch.madr >= dmacRegs.rbor.ADDR && spr0ch.madr < (dmacRegs.rbor.ADDR + dmacRegs.rbsr.RMSK + 16u))
{
partialqwc = spr0ch.qwc;

View File

@ -116,7 +116,7 @@ static __fi void mfifo_VIF1chain()
}
if (vif1ch.madr >= dmacRegs.rbor.ADDR &&
vif1ch.madr < (dmacRegs.rbor.ADDR + dmacRegs.rbsr.RMSK + 16))
vif1ch.madr < (dmacRegs.rbor.ADDR + dmacRegs.rbsr.RMSK + 16u))
{
//if(vif1ch.madr == (dmacRegs.rbor.ADDR + dmacRegs.rbsr.RMSK + 16)) DevCon.Warning("Edge VIF1");

View File

@ -764,7 +764,7 @@ list<VuInstruction>::iterator VuBaseBlock::GetInstIterAtPc(int instpc)
{
pxAssert(instpc >= 0);
u32 curpc = startpc;
int curpc = startpc;
list<VuInstruction>::iterator it;
for (it = insts.begin(); it != insts.end(); ++it)
{
@ -785,7 +785,7 @@ void VuBaseBlock::GetInstsAtPc(int instpc, list<VuInstruction*>& listinsts)
listinsts.clear();
u32 curpc = startpc;
int curpc = startpc;
list<VuInstruction>::iterator it;
for (it = insts.begin(); it != insts.end(); ++it)
{

View File

@ -445,11 +445,11 @@ bool GSC_HauntingGround(const GSFrameInfo& fi, int& skip)
// Note GSdx seems to use invert somewhere FBMSK. So values were inverted
if(skip == 0)
{
if(fi.TME && fi.FPSM == fi.TPSM && fi.TPSM == PSMCT16S && fi.FBMSK == ~(0x03FFF))
if(fi.TME && fi.FPSM == fi.TPSM && fi.TPSM == PSMCT16S && ~fi.FBMSK == 0x03FFF)
skip = 1;
else if(fi.TME && fi.FBP == 0x3000 && fi.TBP0 == 0x3380)
skip = 1; // bloom
else if(fi.TME && fi.FBP == fi.TBP0 && fi.TBP0 == 0x3000 && fi.FBMSK == ~(0xFFFFFF) &&
else if(fi.TME && fi.FBP == fi.TBP0 && fi.TBP0 == 0x3000 && ~fi.FBMSK == 0xFFFFFF &&
GABEST_HAS_SHARED_BITS(fi.FBP, fi.FPSM, fi.TBP0, fi.TPSM))
skip = 1;
}

View File

@ -254,7 +254,7 @@ void CRangeManager::Insert(int start, int end)
assert(imid < (int)ranges.size());
if ((ranges[imid].end <= end) && ((imid == ranges.size() - 1) || (ranges[imid+1].start > end)))
if ((ranges[imid].end <= end) && ((imid == (int)ranges.size() - 1) || (ranges[imid+1].start > end)))
{
imin = imid;
break;