From d3428524155fe72a43afb2bd6220d69d94af06bb Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Tue, 1 Nov 2016 11:14:54 +0000 Subject: [PATCH] Fix constant overflow warning on C89 build. --- cheevos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheevos.c b/cheevos.c index a458eecb04..07f7eabdd3 100644 --- a/cheevos.c +++ b/cheevos.c @@ -2332,7 +2332,7 @@ static unsigned cheevos_find_game_id_nes( MD5_Init(&ctx); count = cheevos_eval_md5(info, offset, 0x4000 * bytes, &ctx); count = 0x4000 * bytes - count; - cheevos_fill_md5(count, 0xff, &ctx); + cheevos_fill_md5(count, (char)0xff, &ctx); MD5_Final(hash, &ctx); return cheevos_get_game_id(hash, &timeout);