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