summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-19 23:17:23 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-19 23:17:23 +0000
commitc412998c491dcad3d6fa9f7c9797fedaebd25798 (patch)
treeb9b8a318b3278d18ea5e71757e94347e3d761c19 /py
parentcd8b2baf4344cb4ace3a5d85a13047e77ef3d743 (diff)
downloadmicropython-c412998c491dcad3d6fa9f7c9797fedaebd25798.tar.gz
micropython-c412998c491dcad3d6fa9f7c9797fedaebd25798.zip
py: Add comment about bugs in objint_longlong.c.
Diffstat (limited to 'py')
-rw-r--r--py/objint_longlong.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objint_longlong.c b/py/objint_longlong.c
index 58c2466fd0..52aaa9e7b5 100644
--- a/py/objint_longlong.c
+++ b/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) {
mp_obj_int_t *rhs = rhs_in;
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)) {
rhs_val = MP_OBJ_SMALL_INT_VALUE(rhs);
} else if (MP_OBJ_IS_TYPE(rhs, &int_type)) {