Commit 72995413 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: fix sign comparison warning

parent 41155369
......@@ -76,7 +76,7 @@ AbstractShocksStatement::reindexDetShocksSymbIds(DataTree &dynamic_datatree, Sym
try
{
vector<DetShockElement> det_shock_vec;
for (int i=0; i<it->second.size(); i++)
for (size_t i = 0; i < it->second.size(); i++)
{
DetShockElement dse;
dse.period1 = it->second[i].period1;
......
......@@ -509,7 +509,7 @@ SymbolTable::rmExo(set<int> &unused) throw (FrozenException)
for (vector<string>::const_iterator it=name_table.begin();
it != name_table.end(); it++)
symbol_table[*it] = size++;
assert(size == symbol_table.size());
assert((size_t)size == symbol_table.size());
set<int> orig_predetermined_variables = predetermined_variables;
predetermined_variables.clear();
......
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