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/objfloat.c | |
parent | 2bb179e1248f045525b247981e3e5285800b63d6 (diff) |
py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED.
Diffstat (limited to 'py/objfloat.c')
-rw-r--r-- | py/objfloat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index d5cbe18fb..5260fadc1 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -97,7 +97,7 @@ STATIC mp_obj_t float_unary_op(int op, mp_obj_t o_in) { case MP_UNARY_OP_BOOL: return MP_BOOL(o->value != 0); case MP_UNARY_OP_POSITIVE: return o_in; case MP_UNARY_OP_NEGATIVE: return mp_obj_new_float(-o->value); - default: return NULL; // op not supported + default: return MP_OBJ_NOT_SUPPORTED; } } |