summaryrefslogtreecommitdiffstatshomepage
path: root/py/obj.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-25 19:48:18 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-29 12:56:45 +1100
commit6b341075376705ee1fe9e003b76b09afa59778f4 (patch)
tree2bcf12db2528b718692b7e9a6fc50547413b749f /py/obj.h
parentca06fac4a1d3bc0a4b8178e11504d44a86c955ef (diff)
downloadmicropython-6b341075376705ee1fe9e003b76b09afa59778f4.tar.gz
micropython-6b341075376705ee1fe9e003b76b09afa59778f4.zip
py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.
Diffstat (limited to 'py/obj.h')
-rw-r--r--py/obj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/obj.h b/py/obj.h
index 65543b7856..580b814a8d 100644
--- a/py/obj.h
+++ b/py/obj.h
@@ -712,7 +712,7 @@ void mp_init_emergency_exception_buf(void);
bool mp_obj_str_equal(mp_obj_t s1, mp_obj_t s2);
qstr mp_obj_str_get_qstr(mp_obj_t self_in); // use this if you will anyway convert the string to a qstr
const char *mp_obj_str_get_str(mp_obj_t self_in); // use this only if you need the string to be null terminated
-const char *mp_obj_str_get_data(mp_obj_t self_in, mp_uint_t *len);
+const char *mp_obj_str_get_data(mp_obj_t self_in, size_t *len);
mp_obj_t mp_obj_str_intern(mp_obj_t str);
void mp_str_print_quoted(const mp_print_t *print, const byte *str_data, size_t str_len, bool is_bytes);