]> granicus.if.org Git - postgis/commitdiff
fixed the last compile warning on solaris/gcc
authorChris Hodgson <chodgson@refractions.net>
Thu, 17 Oct 2002 17:06:39 +0000 (17:06 +0000)
committerChris Hodgson <chodgson@refractions.net>
Thu, 17 Oct 2002 17:06:39 +0000 (17:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@203 b70326c6-7e19-0410-871a-916f4a2858ee

loader/dbfopen.c

index 989d6a724429988e1d50170d4aabba6216178ad6..93eb1a5a36f01f3b681ff87427f6bf3ac1091396 100644 (file)
@@ -34,6 +34,9 @@
  ******************************************************************************
  *
  * $Log$
+ * Revision 1.5  2002/10/17 17:06:39  chodgson
+ * fixed the last compile warning on solaris/gcc
+ *
  * Revision 1.4  2002/10/17 16:45:04  chodgson
  * - cleaned up all the compiler warnings
  * - for getopt.c, this involved moving the line:
@@ -1294,8 +1297,8 @@ static void str_to_upper (char *string)
     len = strlen (string);
 
     while (++i < len)
-        if (isalpha(string[i]) && islower(string[i]))
-            string[i] = toupper ((int)string[i]);
+        if (isalpha((unsigned)string[i]) && islower((unsigned)string[i]))
+           string[i] = toupper ((int)string[i]);
 }
 
 /************************************************************************/