(Mac) More warning fixes

This commit is contained in:
Daniel De Matteis 2021-01-26 21:21:51 +01:00
parent 59952c520b
commit 1ece33337c
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* RetroArch - A frontend for libretro.
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2017 - Hans-Kristian Arntzen
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
@ -40,7 +40,7 @@ template <typename M, typename S>
static string get_semantic_name(const unordered_map<string, M>* map,
S semantic, unsigned index)
{
for (const pair<string, M>& m : *map)
for (const auto& m : *map)
{
if (m.second.semantic == semantic && m.second.index == index)
return m.first;

View File

@ -228,7 +228,7 @@ int libretrodb_open(const char *path, libretrodb_t *db)
db->path = strdup(path);
db->root = filestream_tell(fd);
if ((rv = (int)filestream_read(fd, &header, sizeof(header))) == -1)
if ((int)filestream_read(fd, &header, sizeof(header)) == -1)
{
rv = -errno;
goto error;