Skip to content
Snippets Groups Projects
Commit c412998c authored by Damien George's avatar Damien George
Browse files

py: Add comment about bugs in objint_longlong.c.

parent cd8b2baf
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,9 @@ mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) { ...@@ -45,6 +45,9 @@ mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
mp_obj_int_t *rhs = rhs_in; mp_obj_int_t *rhs = rhs_in;
long long rhs_val; long long rhs_val;
// TODO it can be that lhs is a small int (eg 1 + longlong)
// TODO inplace operations should not modify the int!
if (MP_OBJ_IS_SMALL_INT(rhs)) { if (MP_OBJ_IS_SMALL_INT(rhs)) {
rhs_val = MP_OBJ_SMALL_INT_VALUE(rhs); rhs_val = MP_OBJ_SMALL_INT_VALUE(rhs);
} else if (MP_OBJ_IS_TYPE(rhs, &int_type)) { } else if (MP_OBJ_IS_TYPE(rhs, &int_type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment