shithub: pokecrystal

Download patch

ref: ef5e4e43c7cc0aaf510f348893258eec24440bdd
parent: 06e169d01c1fc08aa02b3401eb8e5e3aa5e7fa9d
author: mid-kid <esteve.varela@gmail.com>
date: Thu Jun 7 09:37:11 EDT 2018

Fix md5.c for Windows

Solves #520

--- a/tools/md5.c
+++ b/tools/md5.c
@@ -39,7 +39,7 @@
 	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;