1 From 30c28436c6e6243827ca88e4e78e4e7ad65fb793 Mon Sep 17 00:00:00 2001
2 From: David Brown <arch@davidb.org>
3 Date: Sat, 3 Oct 2009 20:21:11 -0700
4 Subject: [PATCH] Workaround for memchr const problem.
7 common/ac/string/memmem.cc | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
10 diff --git a/common/ac/string/memmem.cc b/common/ac/string/memmem.cc
11 index f914e75..7d93975 100644
12 --- a/common/ac/string/memmem.cc
13 +++ b/common/ac/string/memmem.cc
14 @@ -182,7 +182,7 @@ memmem_replacement(const void *haystack_start, size_t haystack_len,
16 // Use optimizations in memchr when possible.
18 - return memchr(haystack, *needle, haystack_len);
19 + return memchr((void *)haystack, *needle, haystack_len);
21 // Minimizing the worst-case complexity:
22 // Let n = haystack_len, m = needle_len.