Parcourir la source

Fixed gcc warnings on libconfig.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15591 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind il y a 13 ans
Parent
commit
08059c9f61
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      3rdparty/libconfig/libconfig.c

+ 2 - 2
3rdparty/libconfig/libconfig.c

@@ -533,12 +533,12 @@ static int __config_validate_name(const char *name)
   if(*p == '\0')
     return(CONFIG_FALSE);
 
-  if(! isalpha(*p) && (*p != '*'))
+  if(! isalpha((unsigned char)*p) && (*p != '*'))
     return(CONFIG_FALSE);
 
   for(++p; *p; ++p)
   {
-    if(! (isalpha(*p) || isdigit(*p) || strchr("*_-", (int)*p)))
+    if(! (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || strchr("*_-", (int)*p)))
       return(CONFIG_FALSE);
   }