diff options
Diffstat (limited to 'Objects/stringlib/replace.h')
-rw-r--r-- | Objects/stringlib/replace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/replace.h b/Objects/stringlib/replace.h index ef318ed..123c9f8 100644 --- a/Objects/stringlib/replace.h +++ b/Objects/stringlib/replace.h @@ -29,9 +29,9 @@ STRINGLIB(replace_1char_inplace)(STRINGLIB_CHAR* s, STRINGLIB_CHAR* end, if (!--attempts) { /* if u1 was not found for attempts iterations, use FASTSEARCH() or memchr() */ -#if STRINGLIB_SIZEOF_CHAR == 1 +#ifdef STRINGLIB_FAST_MEMCHR s++; - s = memchr(s, u1, end - s); + s = STRINGLIB_FAST_MEMCHR(s, u1, end - s); if (s == NULL) return; #else |