From 18c299b13dd568669176fb1c713c79dfb4890bbe Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 14 Feb 2017 10:55:54 +0100 Subject: Make mp_float_t conversions explicit to silence warnings of converting floats to doubles. --- py/objarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objarray.c') diff --git a/py/objarray.c b/py/objarray.c index 8e1d32f0f..34acd15b3 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -428,7 +428,7 @@ STATIC mp_obj_t array_subscr(mp_obj_t self_in, mp_obj_t index_in, mp_obj_t value } #endif if (len_adj > 0) { - if (len_adj > o->free) { + if ((mp_uint_t) len_adj > o->free) { // TODO: alloc policy; at the moment we go conservative o->items = m_renew(byte, o->items, (o->len + o->free) * item_sz, (o->len + len_adj) * item_sz); o->free = 0; -- cgit v1.2.3