From 0076644bda23e0bc405ac322244e674c618c844e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Thu, 28 Jul 2022 17:13:23 +0200 Subject: [PATCH] Bytecode MEX: fix bug with PowerDeriv printing introduced in ff85fc6489492f73b3bb8f079fe8d417e1cd14fb --- mex/sources/bytecode/ErrorHandling.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mex/sources/bytecode/ErrorHandling.hh b/mex/sources/bytecode/ErrorHandling.hh index c0d6dc5eaf..b5f8de2ce0 100644 --- a/mex/sources/bytecode/ErrorHandling.hh +++ b/mex/sources/bytecode/ErrorHandling.hh @@ -627,7 +627,7 @@ protected: auto [arg3, prec_arg3, op_arg3] {Stack.top()}; Stack.pop(); Stack.emplace((it_code == faulty_op ? "{PowerDeriv}(" : "PowerDeriv(") + arg1 - + ", " + arg2 + ", " + arg2 + ")", 100, nullopt); + + ", " + arg2 + ", " + arg3 + ")", 100, nullopt); } else { -- GitLab