From: Antoine Pitrou Date: Wed, 13 Jan 2010 13:43:37 +0000 (+0000) Subject: Test commit to try to diagnose failures of the IA-64 buildbot X-Git-Tag: v2.7a3~170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a913a20c913be25bfda242850debb6b6a7c2fc90;p=thirdparty%2FPython%2Fcpython.git Test commit to try to diagnose failures of the IA-64 buildbot --- diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h index 21cf3a2ab7e5..76b92cee701c 100644 --- a/Objects/stringlib/fastsearch.h +++ b/Objects/stringlib/fastsearch.h @@ -18,8 +18,8 @@ #define FAST_SEARCH 1 #define FAST_RSEARCH 2 -#define BLOOM_ADD(mask, ch) ((mask |= (1 << ((ch) & (LONG_BIT - 1))))) -#define BLOOM(mask, ch) ((mask & (1 << ((ch) & (LONG_BIT - 1))))) +#define BLOOM_ADD(mask, ch) ((mask |= (1 << ((ch) & 0x1F)))) +#define BLOOM(mask, ch) ((mask & (1 << ((ch) & 0x1F)))) Py_LOCAL_INLINE(Py_ssize_t) fastsearch(const STRINGLIB_CHAR* s, Py_ssize_t n,