mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 07:59:42 +00:00
(Mac) More warning fixes
This commit is contained in:
parent
59952c520b
commit
1ece33337c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user