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

time-shift
Houtan Bastani 2017-09-15 10:58:35 +02:00
parent 0f2be11005
commit 3aac5663d6
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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);
}