mirror of https://github.com/PCSX2/pcsx2.git
gcc: fix a couple of gcc warning (sign compare)
My gosh, they're like rabbit :p
This commit is contained in:
parent
d28669761f
commit
3a46634f4a
|
@ -135,7 +135,7 @@ size_t CBreakPoints::FindMemCheck(u32 start, u32 end)
|
|||
for (size_t i = 0; i < memChecks_.size(); ++i)
|
||||
{
|
||||
u32 cmpStart = standardizeBreakpointAddress(memChecks_[i].start);
|
||||
int cmpEnd = standardizeBreakpointAddress(memChecks_[i].end);
|
||||
u32 cmpEnd = standardizeBreakpointAddress(memChecks_[i].end);
|
||||
if (cmpStart == start && cmpEnd == end)
|
||||
return i;
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ GSTextureCache::Target* GSTextureCache::LookupTarget(const GIFRegTEX0& TEX0, int
|
|||
{
|
||||
// HACK: try to find something close to the base pointer
|
||||
|
||||
if(t->m_TEX0.TBP0 <= bp && bp < t->m_TEX0.TBP0 + 0xe00 && (!dst || t->m_TEX0.TBP0 >= dst->m_TEX0.TBP0))
|
||||
if(t->m_TEX0.TBP0 <= bp && bp < t->m_TEX0.TBP0 + 0xe00UL && (!dst || t->m_TEX0.TBP0 >= dst->m_TEX0.TBP0))
|
||||
{
|
||||
dst = t;
|
||||
}
|
||||
|
|
|
@ -202,7 +202,7 @@ GSVector4i GSVector4i::fit(int preset) const
|
|||
{
|
||||
GSVector4i r;
|
||||
|
||||
if(preset > 0 && preset < countof(s_ar))
|
||||
if(preset > 0 && preset < (int)countof(s_ar))
|
||||
{
|
||||
r = fit(s_ar[preset][0], s_ar[preset][1]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue