svn commit: r225438 - user/gabor/grep/trunk/regex
Gabor Kovesdan
gabor at FreeBSD.org
Wed Sep 7 14:20:36 UTC 2011
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], \
More information about the svn-src-user
mailing list