summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-02-14 18:55:16 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-02-14 18:57:11 +0200
commitc38809e26b71c539584462c2d02b6cd2647ade5b (patch)
tree4af5fc1e0093d3559dbc442d9fa3cc9bc40108e8 /py/objstr.c
parent609a9c6b715b80b3b84ef875408e7e3b642c8c9b (diff)
downloadmicropython-c38809e26b71c539584462c2d02b6cd2647ade5b.tar.gz
micropython-c38809e26b71c539584462c2d02b6cd2647ade5b.zip
py/objarray: Implement "in" operator for bytearray.
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstr.c b/py/objstr.c
index 60f65d8439..0c2d904035 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) {