Explorar el Código

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 hace 13 años
padre
commit
08059c9f61
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
   }