Fixed gcc 4.7.2 compiler warning in icetime

This commit is contained in:
Clifford Wolf 2016-01-24 08:35:44 +01:00
parent da6ad20dba
commit 54bf7cfb05
1 changed files with 1 additions and 1 deletions

View File

@ -2019,7 +2019,7 @@ int main(int argc, char **argv)
if (open_bracket_pos != std::string::npos) {
std::string base_name = port.first.substr(0, open_bracket_pos);
int bit_index = atoi(port.first.substr(open_bracket_pos+1).c_str());
if (multibit_ports[base_name].size() <= bit_index)
if (int(multibit_ports[base_name].size()) <= bit_index)
multibit_ports[base_name].resize(bit_index+1);
multibit_ports[base_name][bit_index] = port.second;
continue;