projects
/
oweals
/
minetest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix warnings reported by clang
[oweals/minetest.git]
/
src
/
settings.h
diff --git
a/src/settings.h
b/src/settings.h
index 53e8d8ef5c85d43b30fa7c6889bb5b539824f5e2..13c8e1e65e6a7d42b61933629d624560bca05e97 100644
(file)
--- a/
src/settings.h
+++ b/
src/settings.h
@@
-37,6
+37,7
@@
with this program; if not, write to the Free Software Foundation, Inc.,
#include <map>
#include <set>
#include "filesys.h"
#include <map>
#include <set>
#include "filesys.h"
+#include <cctype>
enum ValueType
{
enum ValueType
{
@@
-575,7
+576,7
@@
public:
u32 getFlagStr(std::string name, FlagDesc *flagdesc, u32 *flagmask)
{
std::string val = get(name);
u32 getFlagStr(std::string name, FlagDesc *flagdesc, u32 *flagmask)
{
std::string val = get(name);
- return (isdigit(val[0])) ? stoi(val) :
+ return (
std::
isdigit(val[0])) ? stoi(val) :
readFlagString(val, flagdesc, flagmask);
}
readFlagString(val, flagdesc, flagmask);
}