Skip to content

Commit

Permalink
don't catch exception by value
Browse files Browse the repository at this point in the history
  • Loading branch information
windytan committed Aug 17, 2023
1 parent c954625 commit 4ef0854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Group readHexGroup(const Options& options) {
try {
int nval = std::stoi(std::string(single), nullptr, 16);
block.data = uint16_t((block.data << 4) + nval);
} catch (std::exception) {
} catch (std::exception&) {
block_still_valid = false;
}
which_nibble++;
Expand Down

0 comments on commit 4ef0854

Please sign in to comment.