From 4ef0854e629acc24fc6525da35d2c39c1d054694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oona=20R=C3=A4is=C3=A4nen?= Date: Thu, 17 Aug 2023 19:25:42 +0300 Subject: [PATCH] don't catch exception by value --- src/input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.cc b/src/input.cc index e3badda..cfc9af1 100644 --- a/src/input.cc +++ b/src/input.cc @@ -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++;