diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 10443cff30..19b649849e 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -228,7 +228,7 @@ const char *path_get_extension(const char *path) char *path_get_extension_mutable(const char *path) { char *ext = NULL; - if (!string_is_empty(path) && ((ext = strrchr(path_basename(path), '.')))) + if (!string_is_empty(path) && ((ext = (char*)strrchr(path_basename(path), '.')))) return ext; return NULL; }