Skip to content
Snippets Groups Projects
Commit 42d40d00 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: fix int/size_t comparison warning for g++

parent f9901a99
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ SymbolTable::freeze() throw (FrozenException)
frozen = true;
for (int i = 0; i < symbol_table.size(); i++)
for (int i = 0; i < (int) symbol_table.size(); i++)
{
int tsi;
switch (getType(i))
......
......@@ -367,7 +367,7 @@ public:
inline void
SymbolTable::validateSymbID(int symb_id) const throw (UnknownSymbolIDException)
{
if (symb_id < 0 || symb_id > symbol_table.size())
if (symb_id < 0 || symb_id > (int) symbol_table.size())
throw UnknownSymbolIDException(symb_id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment