--- apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c 2009/05/29 07:48:33 779879 +++ apr/apr-util/branches/1.3.x/strmatch/apr_strmatch.c 2009/05/29 07:48:45 779880 @@ -103,13 +103,13 @@ if (case_sensitive) { pattern->compare = match_boyer_moore_horspool; for (i = 0; i < pattern->length - 1; i++) { - shift[(int)s[i]] = pattern->length - i - 1; + shift[(unsigned char)s[i]] = pattern->length - i - 1; } } else { pattern->compare = match_boyer_moore_horspool_nocase; for (i = 0; i < pattern->length - 1; i++) { - shift[apr_tolower(s[i])] = pattern->length - i - 1; + shift[(unsigned char)apr_tolower(s[i])] = pattern->length - i - 1; } } pattern->context = shift;