aboutsummaryrefslogtreecommitdiff
path: root/py/objstrunicode.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 12:09:43 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-10-11 15:18:15 +0300
commit1b586f3a734c27c78080fb2173bbde17168cb9e4 (patch)
tree7f7745881473f84a8d10b0b43a45a4c009342406 /py/objstrunicode.c
parent53ca6ae1f362da99b5913505a53904d22f460c63 (diff)
py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming.
Diffstat (limited to 'py/objstrunicode.c')
-rw-r--r--py/objstrunicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objstrunicode.c b/py/objstrunicode.c
index 174492514..803b8014d 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: