diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-31 01:38:25 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-03-31 02:23:56 +0300 |
commit | a8e60c1fdee248bda55e9e6e718e05d78c93e115 (patch) | |
tree | bbf3f2341002168e406d5cd1b34e245092bfee5f | |
parent | a96d3d0840357e6015119c427e7052fd73d9be3a (diff) | |
download | micropython-a8e60c1fdee248bda55e9e6e718e05d78c93e115.tar.gz micropython-a8e60c1fdee248bda55e9e6e718e05d78c93e115.zip |
objfloat: Missing default: caused incorrect results for unimplemented ops.
-rw-r--r-- | py/objfloat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/objfloat.c b/py/objfloat.c index babc0c479b..5e4d05f172 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -119,7 +119,8 @@ mp_obj_t mp_obj_float_binary_op(int op, mp_float_t lhs_val, mp_obj_t rhs_in) { case MP_BINARY_OP_LESS_EQUAL: return MP_BOOL(lhs_val <= rhs_val); case MP_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); - return NULL; // op not supported + default: + return NULL; // op not supported } return mp_obj_new_float(lhs_val); } |