$NetBSD$

--- src/regex.c.orig	2007-02-17 18:33:56.000000000 +0000
+++ src/regex.c
@@ -3771,8 +3771,7 @@ re_match_2 (bufp, string1, size1, string
                           regstart[r] = old_regstart[r];
 
                           /* xx why this test?  */
-                          if ((unsigned long int) old_regend[r] >=
-                              (unsigned long int) regstart[r])
+                          if (old_regend[r] >= regstart[r])
                             regend[r] = old_regend[r];
                         }     
                     }
