aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-05-19 16:48:28 -0400
committerJack Lloyd <[email protected]>2017-05-19 16:48:28 -0400
commitb7200c05c6fe841cd5f4a5942a5be3d63124914e (patch)
treeedd385b8d92da3af861cb8dce0c9643078ff5704
parentdd2c8aa1707e59844ef4a30f01983b9ee5fe60fa (diff)
Fix warnings
-rw-r--r--src/lib/filters/cipher_filter.cpp2
-rw-r--r--src/tests/test_modes.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/filters/cipher_filter.cpp b/src/lib/filters/cipher_filter.cpp
index 646e596d8..03727f239 100644
--- a/src/lib/filters/cipher_filter.cpp
+++ b/src/lib/filters/cipher_filter.cpp
@@ -27,8 +27,8 @@ size_t choose_update_size(size_t update_granularity)
Cipher_Mode_Filter::Cipher_Mode_Filter(Cipher_Mode* mode) :
Buffered_Filter(choose_update_size(mode->update_granularity()),
mode->minimum_final_size()),
- m_nonce(mode->default_nonce_length() == 0),
m_mode(mode),
+ m_nonce(mode->default_nonce_length() == 0),
m_buffer(m_mode->update_granularity())
{
}
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp
index 015aafa16..f6cb8890b 100644
--- a/src/tests/test_modes.cpp
+++ b/src/tests/test_modes.cpp
@@ -317,8 +317,8 @@ class Cipher_Mode_IV_Carry_Tests : public Test
dec->finish(msg);
- for(size_t i = 0; i != msg.size(); ++i)
- result.test_eq("Plaintext zeros", static_cast<size_t>(msg[i]), 0);
+ for(size_t j = 0; j != msg.size(); ++j)
+ result.test_eq("Plaintext zeros", static_cast<size_t>(msg[j]), 0);
}
#endif