Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a8e60c1f
Commit
a8e60c1f
authored
Mar 31, 2014
by
Paul Sokolovsky
Browse files
objfloat: Missing default: caused incorrect results for unimplemented ops.
parent
a96d3d08
Changes
1
Hide whitespace changes
Inline
Side-by-side
py/objfloat.c
View file @
a8e60c1f
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment