From 7e5ff3146a427f0e82ba9591fcfa350553abf090 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 14 May 2019 05:16:28 -0400 Subject: Fix warning and bogus assignment --- src/tests/test_certstor_system.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3