diff options
author | stijn <stijn@ignitron.net> | 2020-03-31 10:08:57 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-04-18 22:36:06 +1000 |
commit | b909e8b2dd007d8e7d61547768518b29bb4f833c (patch) | |
tree | c913e1a2ea4c7998b3b80138fdcf71bab7f592e7 /py/objarray.c | |
parent | 4677315a01cbf94f56d244a9064098f6f1a1fad8 (diff) |
Revert "all: Fix implicit casts of float/double, and signed comparison."
This reverts commit a2110bd3fca59df8b16a2b5fe4645a4af30b06ed. There's
nothing inherently wrong with it, but upcoming commits will apply similar
fixes in a slightly different way.
Diffstat (limited to 'py/objarray.c')
-rw-r--r-- | py/objarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/objarray.c b/py/objarray.c index 4947f7590..20232040e 100644 --- a/py/objarray.c +++ b/py/objarray.c @@ -445,7 +445,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 ((size_t)len_adj > o->free) { + if (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 = len_adj; |