diff --git a/cheevos/cheevos.c b/cheevos/cheevos.c index 74da0d8cb8..b97d3c94ed 100644 --- a/cheevos/cheevos.c +++ b/cheevos/cheevos.c @@ -309,7 +309,7 @@ static void rcheevos_award_achievement(const rc_client_achievement_t* cheevo) strlcpy(title, msg_hash_to_str(MSG_ACHIEVEMENT_UNLOCKED), sizeof(title)); - snprintf(subtitle, sizeof(subtitle), "%s (%d)", cheevo->title, cheevo->points); + snprintf(subtitle, sizeof(subtitle), "%s (%lu)", cheevo->title, (unsigned long)cheevo->points); gfx_widgets_push_achievement(title, subtitle, cheevo->badge_name); } diff --git a/command.c b/command.c index 405f46d6b8..39f9208e42 100644 --- a/command.c +++ b/command.c @@ -992,7 +992,7 @@ bool command_get_status(command_t *cmd, const char* arg) _len += strlcpy(reply + _len, path_basename(path_get(RARCH_PATH_BASENAME)), sizeof(reply) - _len); _len += snprintf(reply + _len, sizeof(reply) - _len, - ",crc32=%x\n", content_get_crc()); + ",crc32=%lx\n", (unsigned long)content_get_crc()); } else _len = strlcpy(reply, "GET_STATUS CONTENTLESS", sizeof(reply));