From 6283cb5eefcfe25e1e057601c4fac9a9387dd9b5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 12 Jun 2016 13:50:29 +0200 Subject: [PATCH] Get rid of warnings --- menu/menu_displaylist.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index 1ad0cda720..5f9eb3346f 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -808,18 +808,18 @@ static int menu_displaylist_parse_system_info(menu_displaylist_info_t *info) #elif defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L snprintf(tmp, sizeof(tmp), "Memory (in bytes) : %llu/%llu B", - memory_free, - memory_total + (unsigned long long)memory_free, + (unsigned long long)memory_total ); snprintf(tmp2, sizeof(tmp2), "Memory (in megabytes) : %llu/%llu MB", - bytes_to_mb(memory_free), - bytes_to_mb(memory_total) + (unsigned long long)bytes_to_mb(memory_free), + (unsigned long long)bytes_to_mb(memory_total) ); snprintf(tmp3, sizeof(tmp3), "Memory (in gigabytes): %llu/%llu GB", - bytes_to_gb(memory_free), - bytes_to_gb(memory_total) + (unsigned long long)bytes_to_gb(memory_free), + (unsigned long long)bytes_to_gb(memory_total) ); #else snprintf(tmp, sizeof(tmp),