mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Fix fastsearch for UCS2 and UCS4
* If needle is 0, try (p[0] >> 16) & 0xff for UCS4 * Disable fastsearch_memchr_1char() if needle is zero for UCS2 and UCS4
This commit is contained in:
parent
c5af7730e3
commit
8cc70dcf70
8 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#undef FASTSEARCH
|
||||
#undef STRINGLIB
|
||||
#undef STRINGLIB_SIZEOF_CHAR
|
||||
#undef STRINGLIB_CHAR
|
||||
#undef STRINGLIB_STR
|
||||
#undef STRINGLIB_LEN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue