From f4f296edd6258c48005578c04211df440d9fc463 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Wed, 6 May 2020 18:17:25 +0200 Subject: [PATCH] Preprocessor update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — various refactoring and bugfixes in block decomposition — small bugfix for PAC models --- mex/sources/bytecode/Interpreter.cc | 6 +++--- preprocessor | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mex/sources/bytecode/Interpreter.cc b/mex/sources/bytecode/Interpreter.cc index a9f919885..a3aa0bbe3 100644 --- a/mex/sources/bytecode/Interpreter.cc +++ b/mex/sources/bytecode/Interpreter.cc @@ -604,7 +604,7 @@ Interpreter::ReadCodeFile(string file_name, CodeLoad &code) void Interpreter::check_for_controlled_exo_validity(FBEGINBLOCK_ *fb, vector sconstrained_extended_path) { - vector exogenous = fb->get_exogenous(); + vector exogenous = fb->get_exogenous(); vector endogenous = fb->get_endogenous(); for (vector::iterator it = sconstrained_extended_path.begin(); it != sconstrained_extended_path.end(); it++) { @@ -627,8 +627,8 @@ Interpreter::check_for_controlled_exo_validity(FBEGINBLOCK_ *fb, vector throw FatalExceptionHandling(tmp.str()); } } - for (vector::iterator it = exogenous.begin(); it != exogenous.end(); it++) - previous_block_exogenous.push_back(*it); + for (auto it : exogenous) + previous_block_exogenous.push_back(it); } bool diff --git a/preprocessor b/preprocessor index 27a8b3b70..c699d5730 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 27a8b3b70ed93e45f17e9792d0a23ea781b2b4dc +Subproject commit c699d57308ed766ab6b9a6f6fd690c81d0656cb4