commit | c412998c491dcad3d6fa9f7c9797fedaebd25798 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Wed Mar 19 23:17:23 2014 +0000 |
committer | Damien George <damien.p.george@gmail.com> | Wed Mar 19 23:17:23 2014 +0000 |
tree | b9b8a318b3278d18ea5e71757e94347e3d761c19 | |
parent | cd8b2baf4344cb4ace3a5d85a13047e77ef3d743 [diff] [blame] |
py: Add comment about bugs in objint_longlong.c.
diff --git a/py/objint_longlong.c b/py/objint_longlong.c index 58c2466..52aaa9e 100644 --- a/py/objint_longlong.c +++ b/py/objint_longlong.c
@@ -45,6 +45,9 @@ 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)) {