OSDN Git Service

2005-03-06 Ralf Corsepious <ralf.corsepius@rtems.org>
authorjjohnstn <jjohnstn>
Sun, 6 Mar 2005 20:40:05 +0000 (20:40 +0000)
committerjjohnstn <jjohnstn>
Sun, 6 Mar 2005 20:40:05 +0000 (20:40 +0000)
        * libc/string/memcmp.c: Fix to avoid pointer signedness warning.

newlib/ChangeLog
newlib/libc/string/memcmp.c

index 38707e8..95c92a5 100644 (file)
@@ -1,5 +1,9 @@
 2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
 
+       * libc/string/memcmp.c: Fix to avoid pointer signedness warning.
+
+2005-03-06  Ralf Corsepious  <ralf.corsepius@rtems.org>
+
        * libc/include/machine/_types.h: New file.
        * libc/include/sys/types.h: Do not check for __rtems__
        when including <machine/_types.h>.  Remove some redundant
index ac7a194..4a871fa 100644 (file)
@@ -95,8 +95,8 @@ _DEFUN (memcmp, (m1, m2, n),
 
       /* check m mod LBLOCKSIZE remaining characters */
 
-      s1 = (char*)a1;
-      s2 = (char*)a2;
+      s1 = (unsigned char*)a1;
+      s2 = (unsigned char*)a2;
     }
 
   while (n--)