Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/regex/regexec.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libc/regex/regexec.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.20 retrieving revision 1.21 diff -u -p -r1.20 -r1.21 --- src/lib/libc/regex/regexec.c 2007/02/09 23:44:18 1.20 +++ src/lib/libc/regex/regexec.c 2009/02/12 05:06:54 1.21 @@ -1,4 +1,4 @@ -/* $NetBSD: regexec.c,v 1.20 2007/02/09 23:44:18 junyoung Exp $ */ +/* $NetBSD: regexec.c,v 1.21 2009/02/12 05:06:54 lukem Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 @@ -76,7 +76,7 @@ #if 0 static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; #else -__RCSID("$NetBSD: regexec.c,v 1.20 2007/02/09 23:44:18 junyoung Exp $"); +__RCSID("$NetBSD: regexec.c,v 1.21 2009/02/12 05:06:54 lukem Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -227,7 +227,7 @@ regexec( s = __UNCONST(string); - if (g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) + if (g->nstates <= (sopno)(CHAR_BIT*sizeof(states1)) && !(eflags®_LARGE)) return(smatcher(g, s, nmatch, pmatch, eflags)); else return(lmatcher(g, s, nmatch, pmatch, eflags));