summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/objarray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objarray.c b/py/objarray.c
index e3a59a0f89..30613fcb6e 100644
--- a/py/objarray.c
+++ b/py/objarray.c
@@ -54,7 +54,7 @@
#if MICROPY_PY_BUILTINS_MEMORYVIEW
#define TYPECODE_MASK (0x7f)
#else
-#define TYPECODE_MASK (~(mp_uint_t)1)
+#define TYPECODE_MASK (~(mp_uint_t)0)
#endif
typedef struct _mp_obj_array_t {