Skip to content

Commit

Permalink
detectcoll: fix block indication in output
Browse files Browse the repository at this point in the history
  • Loading branch information
cr-marcstevens committed May 31, 2024
1 parent cd42389 commit a85168a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collisiondetection/detectcoll.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ msgdiff_tuples_t msgdiff_tuples[] = {

void print_coll(uint64_t total, const uint32_t ihv1[4], const uint32_t block1[16], const uint32_t ihv2[4], const uint32_t block2[16]) {
unsigned i;
printf("Found collision in block %d:\n dm: ", ((total>>6)-1));
printf("Found collision in block %d:\n dm: ", (((total+63)>>6)-1));
for (i = 0; i < 16; ++i)
if (block2[i]-block1[i])
printf("dm%d=%08x ", i, block2[i]-block1[i]);
Expand Down

1 comment on commit a85168a

@angea
Copy link
Contributor

@angea angea commented on a85168a May 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cf #38

Please sign in to comment.