diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-28 23:14:30 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-06-28 23:15:29 +0300 |
commit | 9e215fa4c2773b7a4102aec4203c9bf74aa0eccc (patch) | |
tree | 45201e201128c5be451bb292699f72e5395d698d /py/objstrunicode.c | |
parent | a62da515af72c67cbe74efbd6a74cd0a1e7d935e (diff) |
py: Make unichar_charlen() accept/return machine_uint_t.
Diffstat (limited to 'py/objstrunicode.c')
-rw-r--r-- | py/objstrunicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstrunicode.c b/py/objstrunicode.c index 35cc73bd8..d96ce0a55 100644 --- a/py/objstrunicode.c +++ b/py/objstrunicode.c @@ -106,7 +106,7 @@ STATIC mp_obj_t uni_unary_op(int op, mp_obj_t self_in) { case MP_UNARY_OP_BOOL: return MP_BOOL(str_len != 0); case MP_UNARY_OP_LEN: - return MP_OBJ_NEW_SMALL_INT((machine_int_t)unichar_charlen((const char *)str_data, str_len)); + return MP_OBJ_NEW_SMALL_INT(unichar_charlen((const char *)str_data, str_len)); default: return MP_OBJ_NULL; // op not supported } |