aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-29 12:00:57 -0500
committerJack Lloyd <[email protected]>2017-12-29 12:00:57 -0500
commit1fb2be80c348151c35c9144ebc3c0110b492c89d (patch)
tree2ad0bce981156535b6dd5f109cdccd3b49978a23 /src
parent121700a187df586b0181df0ac791fdd2f9cf2f0e (diff)
Fix lambda capture, MSVC didn't like this
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp
index ea773c22b..9ee97caed 100644
--- a/src/tests/test_modes.cpp
+++ b/src/tests/test_modes.cpp
@@ -78,7 +78,7 @@ class Cipher_Mode_Tests final : public Text_Based_Test
const size_t large_nonce_size = 65000;
result.test_eq("Large nonce not allowed", enc->valid_nonce_length(large_nonce_size), false);
result.test_throws("Large nonce causes exception",
- [&enc]() { enc->start(nullptr, large_nonce_size); });
+ [&enc,large_nonce_size]() { enc->start(nullptr, large_nonce_size); });
// Test to make sure reset() resets what we need it to
enc->set_key(mutate_vec(key));