diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-15 23:02:00 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-15 23:02:00 +0000 |
commit | 96056a62721cb4d81856311d9b808460a80b59d4 (patch) | |
tree | f045e95012e543051b540fa39d943f1361c7c02b /py | |
parent | 91f2dbf64cade1a1872e4d09cdb2c74daa782c3b (diff) | |
download | micropython-96056a62721cb4d81856311d9b808460a80b59d4.tar.gz micropython-96056a62721cb4d81856311d9b808460a80b59d4.zip |
py: Revent some long int configuration.
Diffstat (limited to 'py')
-rw-r--r-- | py/binary.c | 2 | ||||
-rw-r--r-- | py/objint.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/py/binary.c b/py/binary.c index f8daa3e6fd..b28eb6426c 100644 --- a/py/binary.c +++ b/py/binary.c @@ -63,7 +63,7 @@ mp_obj_t mp_binary_get_val(char typecode, void *p, int index) { case 'I': case 'L': return mp_obj_new_int_from_uint(((uint32_t*)p)[index]); -#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG +#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE case 'q': case 'Q': // TODO: Explode API more to cover signedness diff --git a/py/objint.h b/py/objint.h index 29d8cf9501..00f9e51d4a 100644 --- a/py/objint.h +++ b/py/objint.h @@ -9,6 +9,6 @@ void int_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj mp_obj_t int_unary_op(int op, mp_obj_t o_in); mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in); -#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG +#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE mp_obj_t mp_obj_new_int_from_ll(long long val); #endif |