From 963a5a3e82ded7ee75adae72ae7cb14796fa150e Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 16 Jan 2015 17:47:07 +0000 Subject: py, unix: Allow to compile with -Wsign-compare. See issue #699. --- py/objint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objint.c') diff --git a/py/objint.c b/py/objint.c index c272fd4a7..f1bd5dad7 100644 --- a/py/objint.c +++ b/py/objint.c @@ -334,7 +334,7 @@ STATIC mp_obj_t int_to_bytes(mp_uint_t n_args, const mp_obj_t *args) { // TODO: Support signed param (assumes signed=False) mp_int_t val = mp_obj_int_get_checked(args[0]); - mp_int_t len = MP_OBJ_SMALL_INT_VALUE(args[1]); + mp_uint_t len = MP_OBJ_SMALL_INT_VALUE(args[1]); byte *data; mp_obj_t o = mp_obj_str_builder_start(&mp_type_bytes, len, &data); -- cgit v1.2.3