From c38809e26b71c539584462c2d02b6cd2647ade5b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 14 Feb 2016 18:55:16 +0200 Subject: py/objarray: Implement "in" operator for bytearray. --- py/objstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objstr.c') diff --git a/py/objstr.c b/py/objstr.c index 60f65d843..0c2d90403 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -245,7 +245,7 @@ wrong_args: // like strstr but with specified length and allows \0 bytes // TODO replace with something more efficient/standard -STATIC const byte *find_subbytes(const byte *haystack, mp_uint_t hlen, const byte *needle, mp_uint_t nlen, mp_int_t direction) { +const byte *find_subbytes(const byte *haystack, mp_uint_t hlen, const byte *needle, mp_uint_t nlen, mp_int_t direction) { if (hlen >= nlen) { mp_uint_t str_index, str_index_end; if (direction > 0) { -- cgit v1.2.3