From e403b8fb1e6ce43973d3f5c64b21ee0a05ca04a1 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 10 Sep 2018 20:35:30 +0200 Subject: [PATCH] C89 buildfixes --- cheevos/cheevos.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index b61fe2ca5a..2d2daab6d8 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -3042,14 +3042,17 @@ found: } else { - // Fall back to headerless hashing - // PRG ROM size is unknown, so test by 16KB chunks - size_t chunks = coro->len >> 14; + unsigned i; + size_t chunks = coro->len >> 14; size_t chunk_size = 0x4000; - coro->round = 0; - coro->offset = 0; + + /* Fall back to headerless hashing + * PRG ROM size is unknown, so test by 16KB chunks */ + + coro->round = 0; + coro->offset = 0; - for (int i = 0; i < chunks; i++) + for (i = 0; i < chunks; i++) { MD5_Init(&coro->md5);