2001-05-25 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / libiberty / memchr.c
index cce300394375b0e28ae1ad40b3f034fdbc1a0b47..89aa98f1d94662b9e194ce90177b0e8e9db9a24b 100644 (file)
@@ -50,7 +50,7 @@ memchr (src_void, c, length)
 {
   const unsigned char *src = (const unsigned char *)src_void;
   
-  while (--length >= 0)
+  while (length-- > 0)
   {
     if (*src == c)
      return (PTR)src;
This page took 0.022751 seconds and 4 git commands to generate.