From 9554065db75687f21c82bc174f3284bbf9487cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Mon, 15 Apr 2019 18:33:51 +0200 Subject: [PATCH] Dynare++ standalone: fix bug when parsing approximation order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- dynare++/src/dynare_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynare++/src/dynare_model.cc b/dynare++/src/dynare_model.cc index 24b34f80f..0996bdb60 100644 --- a/dynare++/src/dynare_model.cc +++ b/dynare++/src/dynare_model.cc @@ -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)