Skip to content

Commit

Permalink
explicitly make integer constants int
Browse files Browse the repository at this point in the history
  • Loading branch information
SamoZ256 committed Nov 20, 2024
1 parent d9f857b commit 732e3be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ static void _emitOperandInputCode(LatteDecompilerShaderContext* shaderContext, L
else if( GPU7_ALU_SRC_IS_LITERAL(aluInstruction->sourceOperand[operandIndex].sel) )
{
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 )
src->addFmt("uint(0x{:x})", aluInstruction->literalData.w[aluInstruction->sourceOperand[operandIndex].chan]);
else if (requiredType == LATTE_DECOMPILER_DTYPE_FLOAT)
Expand Down

0 comments on commit 732e3be

Please sign in to comment.