From: Maksym Mamontov Date: Fri, 19 Aug 2022 13:29:05 +0000 (+0300) Subject: Fix sizeof. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/72797a0baa15ce75663a8dc662a132a6dd1a0de1?hp=c517056585ce9699f0d8b3be6423ef953e90c47b Fix sizeof. --- 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]);