Skip to content

Commit

Permalink
Attempt to fix alignment issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Jun 10, 2021
1 parent 1768534 commit 9206ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/md/blake2.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ extern "C" {

/* Padded structs result in a compile-time error */
enum {
BLAKE2_DUMMY_1 = 1/(sizeof(blake2s_param) == BLAKE2S_OUTBYTES),
BLAKE2_DUMMY_2 = 1/(sizeof(blake2b_param) == BLAKE2B_OUTBYTES)
BLAKE2_DUMMY_1 = 1/(int)(sizeof(blake2s_param) == BLAKE2S_OUTBYTES),
BLAKE2_DUMMY_2 = 1/(int)(sizeof(blake2b_param) == BLAKE2B_OUTBYTES)
};

/* Streaming API */
Expand Down

0 comments on commit 9206ae5

Please sign in to comment.