mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
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:
parent
e3ec07c3ad
commit
ce86e39f4b
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ LatteParsedGSCopyShader* LatteGSCopyShaderParser_parse(uint8* programData, uint3
|
|||
// verify if all registers are exported
|
||||
for(sint32 i=0; i<shaderContext->numParam; i++)
|
||||
{
|
||||
if( shaderContext->paramMapping[i].exportParam == 0xFFFF )
|
||||
if( shaderContext->paramMapping[i].exportParam == 0xFF )
|
||||
debugBreakpoint();
|
||||
}
|
||||
return shaderContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue