Silenced windows warnings

This commit is contained in:
Jack Andersen 2015-10-16 11:52:18 -10:00
parent 978c6b1334
commit f2c77a62fc
2 changed files with 4 additions and 4 deletions

View File

@ -231,7 +231,7 @@ struct GX : IBackend
int getStageIdx(const TEVStage* stage) const
{
for (int i=0 ; i<m_tevCount ; ++i)
for (int i=0 ; i<int(m_tevCount) ; ++i)
if (&m_tevs[i] == stage)
return i;
return -1;
@ -243,7 +243,7 @@ struct GX : IBackend
int pickCLazy(Diagnostics& diag, const SourceLocation& loc, int stageIdx) const
{
int regMask = m_cRegMask;
for (int i=stageIdx+1 ; i<m_tevCount ; ++i)
for (int i=stageIdx+1 ; i<int(m_tevCount) ; ++i)
{
const TEVStage& stage = m_tevs[i];
for (int c=0 ; c<4 ; ++c)

View File

@ -727,14 +727,14 @@ void GX::reset(const IR& ir, Diagnostics& diag)
/* Resolve lazy color/alpha regs */
if (m_cRegLazy)
{
for (int i=0 ; i<m_tevCount ; ++i)
for (int i=0 ; i<int(m_tevCount) ; ++i)
{
TEVStage& stage = m_tevs[i];
if (stage.m_regOut == TEVLAZY)
{
int picked = pickCLazy(diag, stage.m_loc, i);
stage.m_regOut = TevRegID(TEVREG0 + picked);
for (int j=i+1 ; j<m_tevCount ; ++j)
for (int j=i+1 ; j<int(m_tevCount) ; ++j)
{
TEVStage& nstage = m_tevs[j];
if (nstage.m_lazyCInIdx == stage.m_lazyOutIdx)