Fix md5.c for Windows

Solves #520
This commit is contained in:
mid-kid 2018-06-07 13:37:11 +02:00
parent 06e169d01c
commit ef5e4e43c7

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)); uint8_t *message = calloc(length + 64, sizeof(uint8_t));
memcpy(message, data, length); memcpy(message, data, length);
long orig_bitlength = length * 8; int64_t orig_bitlength = length * 8;
message[length++] |= 1 << 7; message[length++] |= 1 << 7;