1 parent cd8b2ba commit c412998Copy full SHA for c412998
1 file changed
py/objint_longlong.c
@@ -45,6 +45,9 @@ mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
45
mp_obj_int_t *rhs = rhs_in;
46
long long rhs_val;
47
48
+ // TODO it can be that lhs is a small int (eg 1 + longlong)
49
+ // TODO inplace operations should not modify the int!
50
+
51
if (MP_OBJ_IS_SMALL_INT(rhs)) {
52
rhs_val = MP_OBJ_SMALL_INT_VALUE(rhs);
53
} else if (MP_OBJ_IS_TYPE(rhs, &int_type)) {
0 commit comments