summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2018-06-07 11:09:30 -0400
committerGitHub <noreply@github.com>2018-06-07 11:09:30 -0400
commit6130fc5cd6b002f827d307c64a432e960629cb9b (patch)
tree47b1c121786d5d738b88fec99243e3914f34b5c7
parent610bac37ac8acb4c63534030f271b1e2fae24ddf (diff)
parentef5e4e43c7cc0aaf510f348893258eec24440bdd (diff)
Merge pull request #521 from mid-kid/master
Fix md5.c for Windows
-rw-r--r--tools/md5.c2
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;