git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c517056
)
Fix sizeof.
author
Maksym Mamontov
<madf@madf.info>
Fri, 19 Aug 2022 13:29:05 +0000
(16:29 +0300)
committer
Maksym Mamontov
<madf@madf.info>
Fri, 19 Aug 2022 13:29:05 +0000
(16:29 +0300)
tests/test_crypto.cpp
patch
|
blob
|
history
diff --git
a/tests/test_crypto.cpp
b/tests/test_crypto.cpp
index e8ff4c3cdcc75f255d16b28dd53acd2cb05ae055..4a50c3d9c615b38f808f3878e77decd200156c2c 100644
(file)
--- 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]);