Skip to content

Commit 097c0dd

Browse files
author
runrevali
committed
[[ StdMlc ]] Fix typo in MCArithmeticEvalMinusNumber
1 parent fc09d1a commit 097c0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libscript/src/module-arithmetic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ extern "C" MC_DLLEXPORT void MCArithmeticEvalMinusNumber(MCNumberRef p_operand,
414414
if (MCNumberIsInteger(p_operand))
415415
MCNumberCreateWithInteger(-MCNumberFetchAsInteger(p_operand), r_output);
416416
else
417-
MCNumberCreateWithInteger(-MCNumberFetchAsReal(p_operand), r_output);
417+
MCNumberCreateWithReal(-MCNumberFetchAsReal(p_operand), r_output);
418418
}
419419

420420
extern "C" MC_DLLEXPORT void MCArithmeticEvalEqualToInteger(integer_t p_left, integer_t p_right, bool& r_output)

0 commit comments

Comments
 (0)