gcc: fix a couple of gcc warning (sign compare)

My gosh, they're like rabbit :p
This commit is contained in:
Gregory Hainaut 2014-05-06 09:25:00 +02:00
parent d28669761f
commit 3a46634f4a
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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]);
}