From e35cd80a14d3fcf31cf10bcc74cd30ea68d46530 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 20 Apr 2019 05:53:17 +0200 Subject: [PATCH] (MSVC 2010) Buildfix --- cheevos/var.c | 7 ++++--- playlist.c | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cheevos/var.c b/cheevos/var.c index d0d53cecb6..46f715e80b 100644 --- a/cheevos/var.c +++ b/cheevos/var.c @@ -289,13 +289,14 @@ Testing uint8_t* cheevos_var_get_memory(const cheevos_var_t* var) { - uint8_t* memory = NULL; - size_t length = 0; + rarch_system_info_t *system = NULL; + uint8_t *memory = NULL; + size_t length = 0; if (var->bank_id < 0) return NULL; - rarch_system_info_t* system = runloop_get_system_info(); + system = runloop_get_system_info(); if (system->mmaps.num_descriptors != 0) { diff --git a/playlist.c b/playlist.c index 663cb632a4..690cdbd9d1 100644 --- a/playlist.c +++ b/playlist.c @@ -582,7 +582,7 @@ bool playlist_push(playlist_t *playlist, if (entry->subsystem_roms) { - int j; + unsigned j; const struct string_list *roms = playlist->entries[i].subsystem_roms; bool unequal = false; @@ -1051,7 +1051,7 @@ void playlist_write_file(playlist_t *playlist) if (playlist->entries[i].subsystem_roms && playlist->entries[i].subsystem_roms->size > 0) { - int j; + unsigned j; JSON_Writer_WriteComma(context.writer); JSON_Writer_WriteNewLine(context.writer);