Commit 13ce36eb authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug_fix: add missing assertion

parent c19950d3
......@@ -1443,6 +1443,7 @@ MarkovSwitchingStatement::checkPass(ModFileStructure &mod_file_struct)
using namespace boost;
OptionsList::num_options_t::const_iterator it_num_regimes =
assert(it_num_regimes != options_list.num_options.end());
int num_regimes = lexical_cast< int >(it_num_regimes->second);
vector<double> col_trans_prob_sum (num_regimes, 0);
vector<double> row_trans_prob_sum (num_regimes, 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment