Merge pull request #187 from jburgess777/icebox-compile-warning

Fix compile warning in icetime.cc
This commit is contained in:
Clifford Wolf 2018-10-30 11:26:26 +01:00 committed by GitHub
commit 8f738342bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1320,7 +1320,7 @@ std::string ecnetname_to_vlog(std::string ec_name)
} else {
return ec_name;
}
} catch(std::invalid_argument e) { // Not numeric and stoi throws exception
} catch(std::invalid_argument &e) { // Not numeric and stoi throws exception
return ec_name;
}