Skip to content

Commit 56f6b42

Browse files
committed
Add missing STRINGLIB_FAST_MEMCHR in bytearrayobject.c and bytes_methods.c
1 parent 80bfc80 commit 56f6b42

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Objects/bytearrayobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,7 @@ bytearray_dealloc(PyByteArrayObject *self)
10961096
#define STRINGLIB_ISSPACE Py_ISSPACE
10971097
#define STRINGLIB_ISLINEBREAK(x) ((x == '\n') || (x == '\r'))
10981098
#define STRINGLIB_CHECK_EXACT PyByteArray_CheckExact
1099+
#define STRINGLIB_FAST_MEMCHR memchr
10991100
#define STRINGLIB_MUTABLE 1
11001101

11011102
#include "stringlib/fastsearch.h"

Objects/bytes_methods.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ _Py_bytes_maketrans(Py_buffer *frm, Py_buffer *to)
431431
#define STRINGLIB(F) stringlib_##F
432432
#define STRINGLIB_CHAR char
433433
#define STRINGLIB_SIZEOF_CHAR 1
434+
#define STRINGLIB_FAST_MEMCHR memchr
434435

435436
#include "stringlib/fastsearch.h"
436437
#include "stringlib/count.h"

0 commit comments

Comments
 (0)