mirror of https://github.com/AxioDL/metaforce.git
Silenced windows warnings
This commit is contained in:
parent
978c6b1334
commit
f2c77a62fc
|
@ -231,7 +231,7 @@ struct GX : IBackend
|
||||||
|
|
||||||
int getStageIdx(const TEVStage* stage) const
|
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)
|
if (&m_tevs[i] == stage)
|
||||||
return i;
|
return i;
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -243,7 +243,7 @@ struct GX : IBackend
|
||||||
int pickCLazy(Diagnostics& diag, const SourceLocation& loc, int stageIdx) const
|
int pickCLazy(Diagnostics& diag, const SourceLocation& loc, int stageIdx) const
|
||||||
{
|
{
|
||||||
int regMask = m_cRegMask;
|
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];
|
const TEVStage& stage = m_tevs[i];
|
||||||
for (int c=0 ; c<4 ; ++c)
|
for (int c=0 ; c<4 ; ++c)
|
||||||
|
|
|
@ -727,14 +727,14 @@ void GX::reset(const IR& ir, Diagnostics& diag)
|
||||||
/* Resolve lazy color/alpha regs */
|
/* Resolve lazy color/alpha regs */
|
||||||
if (m_cRegLazy)
|
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];
|
TEVStage& stage = m_tevs[i];
|
||||||
if (stage.m_regOut == TEVLAZY)
|
if (stage.m_regOut == TEVLAZY)
|
||||||
{
|
{
|
||||||
int picked = pickCLazy(diag, stage.m_loc, i);
|
int picked = pickCLazy(diag, stage.m_loc, i);
|
||||||
stage.m_regOut = TevRegID(TEVREG0 + picked);
|
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];
|
TEVStage& nstage = m_tevs[j];
|
||||||
if (nstage.m_lazyCInIdx == stage.m_lazyOutIdx)
|
if (nstage.m_lazyCInIdx == stage.m_lazyOutIdx)
|
||||||
|
|
Loading…
Reference in New Issue