Skip to content

Commit

Permalink
fixed gcc-9 compile issue
Browse files Browse the repository at this point in the history
Signed-off-by: Jingliang Wang <[email protected]>
  • Loading branch information
Leo-Wang-JL committed Jun 28, 2020
1 parent 34d8384 commit 6810846
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 6810846

Please sign in to comment.