From cd9ea1f44b7746c4975a948acd6f0f1d4b91b896 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 1 Aug 2020 18:16:19 +0200 Subject: [PATCH] Another warning fix --- libretro-common/formats/xml/rxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/formats/xml/rxml.c b/libretro-common/formats/xml/rxml.c index 2954fb5cc0..a07dd0623d 100644 --- a/libretro-common/formats/xml/rxml.c +++ b/libretro-common/formats/xml/rxml.c @@ -100,7 +100,7 @@ rxml_document_t *rxml_load_document(const char *path) return NULL; len = filestream_get_size(file); - memory_buffer = (char*)malloc(len + 1); + memory_buffer = (char*)malloc((size_t)(len + 1)); if (!memory_buffer) goto error;