diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-11 12:09:43 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2015-10-11 15:18:15 +0300 |
commit | 1b586f3a734c27c78080fb2173bbde17168cb9e4 (patch) | |
tree | 7f7745881473f84a8d10b0b43a45a4c009342406 /py/objstrunicode.c | |
parent | 53ca6ae1f362da99b5913505a53904d22f460c63 (diff) | |
download | micropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.tar.gz micropython-1b586f3a734c27c78080fb2173bbde17168cb9e4.zip |
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
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 1744925142..803b8014df 100644 --- a/py/objstrunicode.c +++ b/py/objstrunicode.c @@ -104,7 +104,7 @@ STATIC mp_obj_t uni_unary_op(mp_uint_t op, mp_obj_t self_in) { GET_STR_DATA_LEN(self_in, str_data, str_len); switch (op) { case MP_UNARY_OP_BOOL: - return MP_BOOL(str_len != 0); + return mp_obj_new_bool(str_len != 0); case MP_UNARY_OP_LEN: return MP_OBJ_NEW_SMALL_INT(unichar_charlen((const char *)str_data, str_len)); default: |