Date: Wed, 7 Sep 2011 14:20:36 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r225438 - user/gabor/grep/trunk/regex Message-ID: <201109071420.p87EKaAF042567@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Wed Sep 7 14:20:36 2011 New Revision: 225438 URL: http://svn.freebsd.org/changeset/base/225438 Log: - Fix some warnings Modified: user/gabor/grep/trunk/regex/fastmatch.h user/gabor/grep/trunk/regex/tre-fastmatch.c Modified: user/gabor/grep/trunk/regex/fastmatch.h ============================================================================== --- user/gabor/grep/trunk/regex/fastmatch.h Wed Sep 7 14:04:51 2011 (r225437) +++ user/gabor/grep/trunk/regex/fastmatch.h Wed Sep 7 14:20:36 2011 (r225438) @@ -13,7 +13,7 @@ typedef struct { size_t len; wchar_t *wpattern; bool *wescmap; - int hasdot; + unsigned int hasdot; int qsBc[UCHAR_MAX + 1]; int *bmGs; char *pattern; Modified: user/gabor/grep/trunk/regex/tre-fastmatch.c ============================================================================== --- user/gabor/grep/trunk/regex/tre-fastmatch.c Wed Sep 7 14:04:51 2011 (r225437) +++ user/gabor/grep/trunk/regex/tre-fastmatch.c Wed Sep 7 14:20:36 2011 (r225438) @@ -206,7 +206,7 @@ static int fastcmp(const void *, const b #define FILL_QSBC \ for (unsigned int i = 0; i <= UCHAR_MAX; i++) \ fg->qsBc[i] = fg->len - fg->hasdot; \ - for (int i = fg->hasdot + 1; i < fg->len; i++) \ + for (unsigned int i = fg->hasdot + 1; i < fg->len; i++) \ { \ fg->qsBc[(unsigned char)fg->pattern[i]] = fg->len - i; \ DPRINT(("BC shift for char %c is %zu\n", fg->pattern[i], \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109071420.p87EKaAF042567>