From 0dcff27478ec279f89fa91d5814bc40bac18a965 Mon Sep 17 00:00:00 2001 From: stepan Date: Sun, 10 Jan 2010 21:35:32 +0000 Subject: [PATCH] Fixed a bug introduced in commit 3319 (trunk). If my understanding is correct, some parenthesis were missing in the IF condition (causing a preprocessor error). git-svn-id: https://www.dynare.org/svn/dynare/trunk@3336 ac1d8469-bf42-47a9-8791-bf33cf982152 --- ModFile.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ModFile.cc b/ModFile.cc index 048365a2..0597b125 100644 --- a/ModFile.cc +++ b/ModFile.cc @@ -134,12 +134,11 @@ ModFile::checkPass() cerr << "ERROR: In 'model' block, can't use option 'bytecode' without option 'block'" << endl; exit(EXIT_FAILURE); } - if (stochastic_statement_present || mod_file_struct.check_present || mod_file_struct.steady_present && no_static) + if ( (stochastic_statement_present || mod_file_struct.check_present || mod_file_struct.steady_present) && no_static) { cerr << "no_static option is incompatible with stochastic simulation, estimation, optimal policy, steady or check command" << endl; exit(EXIT_FAILURE); } - } void