From 2b7d1e42a516884f99daebb93434642929fefe8f Mon Sep 17 00:00:00 2001 From: Aaron Feickert <66188213+AaronFeickert@users.noreply.github.com> Date: Tue, 18 May 2021 13:13:57 -0400 Subject: [PATCH] WIP: remove catch by value --- src/liblelantus/range_verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblelantus/range_verifier.cpp b/src/liblelantus/range_verifier.cpp index 12331a77d9..d77ef8d3ec 100644 --- a/src/liblelantus/range_verifier.cpp +++ b/src/liblelantus/range_verifier.cpp @@ -160,7 +160,7 @@ bool RangeVerifier::verify(const std::vector >& V, con // In the event of an attempt to invert a zero scalar, the batch is bad try { x_j_inv = LelantusPrimitives::invert(x_j); // NOTE: these could be batched across proofs as well for improved efficiency - } catch (std::runtime_error) { + } catch (const std::runtime_error&) { return false; }