From e8e84b970bd012f0e4f46f96307c9d70232eb09d Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Wed, 4 Jan 2012 12:11:35 +0100 Subject: [PATCH] bug_fix: missing exit statement --- ComputingTasks.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ComputingTasks.cc b/ComputingTasks.cc index 3b277f9e..e8e1c71f 100644 --- a/ComputingTasks.cc +++ b/ComputingTasks.cc @@ -1295,10 +1295,11 @@ SvarIdentificationStatement::writeOutput(ostream &output, const string &basename { int col = (it->lag-1)*n+it->variable+1; if (col > k) - { - cerr << "ERROR: lag =" << it->lag << ", num endog vars = " << n << "current endog var index = " << it->variable << ". Index " - << "out of bounds. If the above does not represent a logical error, please report this to the Dyanre Team." << endl; - } + { + cerr << "ERROR: lag =" << it->lag << ", num endog vars = " << n << "current endog var index = " << it->variable << ". Index " + << "out of bounds. If the above does not represent a logical error, please report this to the Dyanre Team." << endl; + exit(EXIT_FAILURE); + } output << "options_.ms.Ri{" << it->equation << "}(" << it->restriction_nbr << ", " << col << ") = "; it->value->writeOutput(output); output << ";" << endl;