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
Sébastien Villemot 2019-04-15 18:33:51 +02:00
parent c10d8daf9f
commit 9554065db7
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -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)