aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Instructions/InstEmitFlowHelper.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-01-16 08:39:43 -0300
committerGitHub <noreply@github.com>2022-01-16 08:39:43 -0300
commitbd215e447d68403901e762aa16ba9b6579ed7cd7 (patch)
tree6a1da8ce705b6546673d4429de69fa4da2ed6650 /ARMeilleure/Instructions/InstEmitFlowHelper.cs
parent3fa7ef21b43081a8f40ce76aafdb7cd0695dcda5 (diff)
Fix return type mismatch on 32-bit titles (#3000)
Diffstat (limited to 'ARMeilleure/Instructions/InstEmitFlowHelper.cs')
-rw-r--r--ARMeilleure/Instructions/InstEmitFlowHelper.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ARMeilleure/Instructions/InstEmitFlowHelper.cs b/ARMeilleure/Instructions/InstEmitFlowHelper.cs
index 8ce704b1..6ac32908 100644
--- a/ARMeilleure/Instructions/InstEmitFlowHelper.cs
+++ b/ARMeilleure/Instructions/InstEmitFlowHelper.cs
@@ -163,6 +163,11 @@ namespace ARMeilleure.Instructions
{
if (isReturn)
{
+ if (target.Type == OperandType.I32)
+ {
+ target = context.ZeroExtend32(OperandType.I64, target);
+ }
+
context.Return(target);
}
else