From 72797a0baa15ce75663a8dc662a132a6dd1a0de1 Mon Sep 17 00:00:00 2001 From: Maksym Mamontov Date: Fri, 19 Aug 2022 16:29:05 +0300 Subject: [PATCH 1/1] Fix sizeof. --- tests/test_crypto.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_crypto.cpp b/tests/test_crypto.cpp index e8ff4c3c..4a50c3d9 100644 --- a/tests/test_crypto.cpp +++ b/tests/test_crypto.cpp @@ -76,7 +76,7 @@ void dumpCheckCtx(const std::string& nameA, const std::string& nameB, const BLOW bool equalCtx(const BLOWFISH_CTX& a, const BLOWFISH_CTX& b) { - for (size_t i = 0; i < sizeof(a.P); ++i) + for (size_t i = 0; i < 18; ++i) if (a.P[i] != b.P[i]) { printf("Failed for P at %ld: 0x%x != 0x%x\n", i, a.P[i], b.P[i]); -- 2.44.2