summaryrefslogtreecommitdiff
path: root/py/objarray.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-02-14 10:55:54 +0100
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-02-14 10:55:54 +0100
commit18c299b13dd568669176fb1c713c79dfb4890bbe (patch)
tree32fdb41caa0e39479abdecee1c64784ce7145b48 /py/objarray.c
parent9ed3e11aec6ed40a86fa846b9fe2fa76224d8c05 (diff)
Make mp_float_t conversions explicit to silence warnings of converting floats to doubles.
Diffstat (limited to 'py/objarray.c')
-rw-r--r--py/objarray.c2
1 files changed, 1 insertions, 1 deletions
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;