Skip to content

Commit

Permalink
prevent unwanted wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
sneves committed Mar 22, 2016
1 parent 02bdff7 commit ba4b99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoding.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ int encode_string(char *dst, size_t dst_len, argon2_context *ctx,
}

size_t b64len(uint32_t len) {
return ((len + 2) / 3) * 4;
return (((size_t)len + 2) / 3) * 4;
}

size_t numlen(uint32_t num) {
Expand Down

0 comments on commit ba4b99a

Please sign in to comment.