diff options
author | mid-kid <esteve.varela@gmail.com> | 2018-06-07 13:37:11 +0200 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2018-06-07 13:37:11 +0200 |
commit | ef5e4e43c7cc0aaf510f348893258eec24440bdd (patch) | |
tree | fe14a1cbb30f677d4a783ae665a0b1dfa8b3467d | |
parent | 06e169d01c1fc08aa02b3401eb8e5e3aa5e7fa9d (diff) |
Fix md5.c for Windows
Solves #520
-rw-r--r-- | tools/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/md5.c b/tools/md5.c index 45562330a..6f4f58d2d 100644 --- a/tools/md5.c +++ b/tools/md5.c @@ -39,7 +39,7 @@ void md5_wikipedia(uint8_t *data, int length, uint8_t *result) { uint8_t *message = calloc(length + 64, sizeof(uint8_t)); memcpy(message, data, length); - long orig_bitlength = length * 8; + int64_t orig_bitlength = length * 8; message[length++] |= 1 << 7; |