summaryrefslogtreecommitdiffstatshomepage
path: root/py/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/builtin.c')
-rw-r--r--py/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/builtin.c b/py/builtin.c
index dabc990165..88a724fcd6 100644
--- a/py/builtin.c
+++ b/py/builtin.c
@@ -175,7 +175,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(mp_builtin_callable_obj, mp_builtin_callable);
STATIC mp_obj_t mp_builtin_chr(mp_obj_t o_in) {
#if MICROPY_PY_BUILTINS_STR_UNICODE
- mp_int_t c = mp_obj_get_int(o_in);
+ mp_uint_t c = mp_obj_get_int(o_in);
char str[4];
int len = 0;
if (c < 0x80) {