]> granicus.if.org Git - python/commitdiff
Test commit to try to diagnose failures of the IA-64 buildbot
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jan 2010 13:43:37 +0000 (13:43 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Jan 2010 13:43:37 +0000 (13:43 +0000)
Objects/stringlib/fastsearch.h

index 21cf3a2ab7e52eb8b5c8a5a061a7a72b6edc87c0..76b92cee701cfab9aa39025c4584d41642309c3c 100644 (file)
@@ -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,