about summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
Diffstat (limited to 'string')
-rw-r--r--string/strcoll.c6
-rw-r--r--string/strxfrm.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/string/strcoll.c b/string/strcoll.c
index a4bbabc2ac..7061a38026 100644
--- a/string/strcoll.c
+++ b/string/strcoll.c
@@ -75,7 +75,8 @@ STRCOLL (s1, s2)
 
 	  /* Here we have to check for IGNORE entries.  If these are
 	     found we count them and go on witht he next value.  */
-	  while ((w1 = s1run->data[pass].value[s1idx]) == IGNORE_CHAR)
+	  while ((w1 = s1run->data[pass].value[s1idx])
+		 == (u_int32_t) IGNORE_CHAR)
 	    {
 	      ++s1ignore;
 	      if ((forward && ++s1idx >= s1run->data[pass].number)
@@ -92,7 +93,8 @@ STRCOLL (s1, s2)
 		}
 	    }
 
-	  while ((w2 = s2run->data[pass].value[s2idx]) == IGNORE_CHAR)
+	  while ((w2 = s2run->data[pass].value[s2idx])
+		 == (u_int32_t) IGNORE_CHAR)
 	    {
 	      ++s2ignore;
 	      if ((forward && ++s2idx >= s2run->data[pass].number)
diff --git a/string/strxfrm.c b/string/strxfrm.c
index f94c16b50b..6d0a7061b7 100644
--- a/string/strxfrm.c
+++ b/string/strxfrm.c
@@ -179,7 +179,7 @@ STRXFRM (STRING_TYPE *dest, const STRING_TYPE *src, size_t n)
 
 	  /* Here we have to check for IGNORE entries.  If these are
 	     found we count them and go on witht he next value.  */
-	  while ((w = run->data[pass].value[idx]) == IGNORE_CHAR)
+	  while ((w = run->data[pass].value[idx]) == (u_int32_t) IGNORE_CHAR)
 	    {
 	      ++ignore;
 	      if ((forward && ++idx >= run->data[pass].number)