From 67caab026a83afa51169e0151832181188a20a4c Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sat, 24 May 2025 11:53:26 +0200 Subject: [PATCH] OpcodeDispatcher: Fix inconsistent types in ternary conditional --- FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp b/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp index 2f8036bf6..fd4804d26 100644 --- a/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp +++ b/FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp @@ -2643,7 +2643,10 @@ void OpDispatchBuilder::IMULOp(OpcodeArgs) { } // 64-bit special cased to save a move - Ref Result = Size < OpSize::i64Bit ? _Mul(OpSize::i64Bit, Src1, Src2) : nullptr; + Ref Result {}; + if (Size < OpSize::i64Bit) { + Result = _Mul(OpSize::i64Bit, Src1, Src2); + } Ref ResultHigh {}; if (Size == OpSize::i8Bit) { // Result is stored in AX