Skip to content

Commit

Permalink
Merge pull request #9 from Leo-Wang-JL/issue_7_gcc_9_compile
Browse files Browse the repository at this point in the history
fixed gcc-9 compile issue
  • Loading branch information
MikeOpenHWGroup authored Jun 29, 2020
2 parents 34d8384 + 6810846 commit e94b4fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/src/UtilityFunctions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ namespace Force {
try {
amount = stoul(size_text);
}
catch (invalid_argument) {
catch (invalid_argument&) {
// Handled below by checking if amount is 0.
}
catch (out_of_range) {
catch (out_of_range&) {
// Handled below by checking if amount is 0.
}
}
Expand Down

0 comments on commit e94b4fd

Please sign in to comment.