X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/c517056585ce9699f0d8b3be6423ef953e90c47b..72797a0baa15ce75663a8dc662a132a6dd1a0de1:/tests/test_crypto.cpp 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]);