aboutsummaryrefslogtreecommitdiff
path: root/py/objstr.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-02-16 16:26:48 +1100
committerDamien George <damien.p.george@gmail.com>2017-02-16 16:51:16 +1100
commitc0d9500eeefe57076f2f9a36afaa80186e9e30be (patch)
tree3b04f8045dc3a770229c4c807c0679f5c682ab0a /py/objstr.h
parent68cd3a93f0728b61b0d2407f4ae802806dddce4d (diff)
py/objstr: Convert mp_uint_t to size_t (and use int) where appropriate.
Diffstat (limited to 'py/objstr.h')
-rw-r--r--py/objstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objstr.h b/py/objstr.h
index ad2777afb..e92832d10 100644
--- a/py/objstr.h
+++ b/py/objstr.h
@@ -32,7 +32,7 @@ typedef struct _mp_obj_str_t {
mp_obj_base_t base;
mp_uint_t hash;
// len == number of bytes used in data, alloc = len + 1 because (at the moment) we also append a null byte
- mp_uint_t len;
+ size_t len;
const byte *data;
} mp_obj_str_t;
@@ -72,7 +72,7 @@ mp_int_t mp_obj_str_get_buffer(mp_obj_t self_in, mp_buffer_info_t *bufinfo, mp_u
const byte *str_index_to_ptr(const mp_obj_type_t *type, const byte *self_data, size_t self_len,
mp_obj_t index, bool is_slice);
-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, size_t hlen, const byte *needle, size_t nlen, int direction);
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_encode_obj);
MP_DECLARE_CONST_FUN_OBJ_VAR_BETWEEN(str_find_obj);