aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-05-14 05:16:28 -0400
committerJack Lloyd <[email protected]>2019-05-14 05:16:28 -0400
commit7e5ff3146a427f0e82ba9591fcfa350553abf090 (patch)
tree24a28c41772940e68831dca92654ddb06b2c23e0 /src/tests
parentdc48bce3d6acae3f0423bf15ec42bf740563da5a (diff)
Fix warning and bogus assignment
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_certstor_system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_certstor_system.cpp b/src/tests/test_certstor_system.cpp
index 48bcc7246..45f9eb71b 100644
--- a/src/tests/test_certstor_system.cpp
+++ b/src/tests/test_certstor_system.cpp
@@ -172,9 +172,9 @@ Test::Result find_all_certs_by_subject_dn(Botan::Certificate_Store& certstore)
// check for duplications
sort(certs.begin(), certs.end());
- for(int i = 1; i < certs.size(); ++i)
+ for(size_t i = 1; i < certs.size(); ++i)
{
- if(certs[i=1] == certs[i])
+ if(certs[i-1] == certs[i])
{
result.test_failure("find_all_certs produced duplicated result");
}