Merge pull request #521 from mid-kid/master

Fix md5.c for Windows
This commit is contained in:
yenatch 2018-06-07 11:09:30 -04:00 committed by GitHub
commit 6130fc5cd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;