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.time-shift
parent
c10d8daf9f
commit
9554065db7
|
@ -471,7 +471,7 @@ DynareParser::DynareParser(const char *stream, int len, int ord)
|
|||
{
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue