diff --git a/fast_strstr.c b/fast_strstr.c index f5144e5..21f7675 100644 --- a/fast_strstr.c +++ b/fast_strstr.c @@ -60,7 +60,7 @@ char *fast_strstr(const char *haystack, const char *needle) const char *i_haystack = haystack + 1 , *i_needle = needle + 1; - unsigned int sums_diff = *haystack; + int sums_diff = 0; bool identical = true; while (*i_haystack && *i_needle) {