Fix always false comparison

Other places check against 0xFF instead of 0xFF

/root/cemu/src/Cafe/HW/Latte/Core/LatteGSCopyShaderParser.cpp:245:50: 
warning: result of comparison of constant 65535 with expression of type 
'uint8' (aka 'unsigned char') is always false 
[-Wtautological-constant-out-of-range-compare]
                if( shaderContext->paramMapping[i].exportParam == 0xFFFF 
)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~
This commit is contained in:
bitscher 2022-09-03 17:47:06 -07:00
parent e3ec07c3ad
commit ce86e39f4b

View file

@ -242,7 +242,7 @@ LatteParsedGSCopyShader* LatteGSCopyShaderParser_parse(uint8* programData, uint3
// verify if all registers are exported // verify if all registers are exported
for(sint32 i=0; i<shaderContext->numParam; i++) for(sint32 i=0; i<shaderContext->numParam; i++)
{ {
if( shaderContext->paramMapping[i].exportParam == 0xFFFF ) if( shaderContext->paramMapping[i].exportParam == 0xFF )
debugBreakpoint(); debugBreakpoint();
} }
return shaderContext; return shaderContext;