Skip to content

Commit 36109d2

Browse files
committed
Small change to configuration of long int.
1 parent 22a0865 commit 36109d2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

py/binary.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mp_obj_t mp_binary_get_val(char typecode, void *p, int index) {
6363
case 'I':
6464
case 'L':
6565
return mp_obj_new_int_from_uint(((uint32_t*)p)[index]);
66-
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
66+
#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG
6767
case 'q':
6868
case 'Q':
6969
// TODO: Explode API more to cover signedness

py/objint.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
typedef struct _mp_obj_int_t {
22
mp_obj_base_t base;
3-
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
3+
#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG
44
mp_longint_impl_t val;
55
#endif
66
} mp_obj_int_t;
@@ -9,6 +9,6 @@ void int_print(void (*print)(void *env, const char *fmt, ...), void *env, mp_obj
99
mp_obj_t int_unary_op(int op, mp_obj_t o_in);
1010
mp_obj_t int_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in);
1111

12-
#if MICROPY_LONGINT_IMPL != MICROPY_LONGINT_IMPL_NONE
12+
#if MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_LONGLONG
1313
mp_obj_t mp_obj_new_int_from_ll(long long val);
1414
#endif

0 commit comments

Comments
 (0)