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
issue#70
stepan 2010-01-10 21:35:32 +00:00
parent 0808ba42b7
commit 0dcff27478
1 changed files with 1 additions and 2 deletions

View File

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