summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objstr.c')
-rw-r--r--py/objstr.c5
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;