Skip to content

Commit c412998

Browse files
committed
py: Add comment about bugs in objint_longlong.c.
1 parent cd8b2ba commit c412998

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

py/objint_longlong.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
4545
mp_obj_int_t *rhs = rhs_in;
4646
long long rhs_val;
4747

48+
// TODO it can be that lhs is a small int (eg 1 + longlong)
49+
// TODO inplace operations should not modify the int!
50+
4851
if (MP_OBJ_IS_SMALL_INT(rhs)) {
4952
rhs_val = MP_OBJ_SMALL_INT_VALUE(rhs);
5053
} else if (MP_OBJ_IS_TYPE(rhs, &int_type)) {

0 commit comments

Comments
 (0)