From f9ef38e5795d74708ca361c179c5d3ce160bc81f Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 17 Aug 2015 10:51:14 +0200
Subject: [PATCH] preprocessor: write M_.aux_vars(i).eq_nbr as int instead of
 char. closes #1028

---
 preprocessor/SymbolTable.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preprocessor/SymbolTable.cc b/preprocessor/SymbolTable.cc
index e1fdff804b..332c94a465 100644
--- a/preprocessor/SymbolTable.cc
+++ b/preprocessor/SymbolTable.cc
@@ -253,7 +253,7 @@ SymbolTable::writeOutput(ostream &output) const throw (NotYetFrozenException)
                    << "M_.aux_vars(" << i+1 << ").orig_lead_lag = " << aux_vars[i].get_orig_lead_lag() << ";" << endl;
             break;
           case avMultiplier:
-            output << "M_.aux_vars(" << i+1 << ").eq_nbr = '" << aux_vars[i].get_equation_number_for_multiplier() + 1 << "';" << endl;
+            output << "M_.aux_vars(" << i+1 << ").eq_nbr = " << aux_vars[i].get_equation_number_for_multiplier() + 1 << ";" << endl;
             break;
           case avDiffForward:
             output << "M_.aux_vars(" << i+1 << ").orig_index = " << getTypeSpecificID(aux_vars[i].get_orig_symb_id())+1 << ";" << endl;
-- 
GitLab