mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
explicitly make integer constants int
This commit is contained in:
parent
d9f857bcc4
commit
732e3be63d
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ static void _emitOperandInputCode(LatteDecompilerShaderContext* shaderContext, L
|
||||||
else if( GPU7_ALU_SRC_IS_LITERAL(aluInstruction->sourceOperand[operandIndex].sel) )
|
else if( GPU7_ALU_SRC_IS_LITERAL(aluInstruction->sourceOperand[operandIndex].sel) )
|
||||||
{
|
{
|
||||||
if( requiredType == LATTE_DECOMPILER_DTYPE_SIGNED_INT )
|
if( requiredType == LATTE_DECOMPILER_DTYPE_SIGNED_INT )
|
||||||
src->addFmt("0x{:x}", aluInstruction->literalData.w[aluInstruction->sourceOperand[operandIndex].chan]);
|
src->addFmt("int(0x{:x})", aluInstruction->literalData.w[aluInstruction->sourceOperand[operandIndex].chan]);
|
||||||
else if( requiredType == LATTE_DECOMPILER_DTYPE_UNSIGNED_INT )
|
else if( requiredType == LATTE_DECOMPILER_DTYPE_UNSIGNED_INT )
|
||||||
src->addFmt("uint(0x{:x})", aluInstruction->literalData.w[aluInstruction->sourceOperand[operandIndex].chan]);
|
src->addFmt("uint(0x{:x})", aluInstruction->literalData.w[aluInstruction->sourceOperand[operandIndex].chan]);
|
||||||
else if (requiredType == LATTE_DECOMPILER_DTYPE_FLOAT)
|
else if (requiredType == LATTE_DECOMPILER_DTYPE_FLOAT)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue