diff options
author | Damien George <damien.p.george@gmail.com> | 2014-05-10 13:55:11 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-05-10 13:55:11 +0100 |
commit | d0a5bf34f746276550aef9c8519160c033611571 (patch) | |
tree | 2c24601b11eeb11f161082a92b89eb559702cc4e /py/objstr.c | |
parent | 2bb179e1248f045525b247981e3e5285800b63d6 (diff) | |
download | micropython-d0a5bf34f746276550aef9c8519160c033611571.tar.gz micropython-d0a5bf34f746276550aef9c8519160c033611571.zip |
py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED.
Diffstat (limited to 'py/objstr.c')
-rw-r--r-- | py/objstr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/py/objstr.c b/py/objstr.c index 7ca8afc6ba..e42b21fc6c 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -287,10 +287,9 @@ STATIC mp_obj_t str_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { } break; - case MP_BINARY_OP_MULTIPLY: - { + case MP_BINARY_OP_MULTIPLY: { if (!MP_OBJ_IS_SMALL_INT(rhs_in)) { - return NULL; + return MP_OBJ_NOT_SUPPORTED; } int n = MP_OBJ_SMALL_INT_VALUE(rhs_in); byte *data; |