Dynare++ standalone: fix bug when parsing approximation order

It was not possible to set a 2-digit order (i.e. ≥ 10).

Not sure that it was a real problem in practice, given the computational limits.
parent c10d8daf
Pipeline #1136 failed with stages
in 99 minutes and 59 seconds
...@@ -471,7 +471,7 @@ DynareParser::DynareParser(const char *stream, int len, int ord) ...@@ -471,7 +471,7 @@ DynareParser::DynareParser(const char *stream, int len, int ord)
{ {
if (order_end > order_beg) if (order_end > order_beg)
{ {
order = parse_order(order_end > order_beg, stream + order_beg); order = parse_order(order_end - order_beg, stream + order_beg);
} }
} }
catch (const ogp::ParserException &e) catch (const ogp::ParserException &e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment