summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-23 16:36:08 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-23 16:36:08 +1100
commit60656eaea41df16557fbbdb51d9b8fc2cf7662a1 (patch)
tree862e226a7e29408e84dd00b1644947654741cc85 /py/objcomplex.c
parent507119f4d80cc70cc35249f97c9b0ee22b8965f4 (diff)
downloadmicropython-60656eaea41df16557fbbdb51d9b8fc2cf7662a1.tar.gz
micropython-60656eaea41df16557fbbdb51d9b8fc2cf7662a1.zip
py: Define and use MP_OBJ_ITER_BUF_NSLOTS to get size of stack iter buf.
It improves readability of code and reduces the chance to make a mistake. This patch also fixes a bug with nan-boxing builds by rounding up the calculation of the new NSLOTS variable, giving the correct number of slots (being 4) even if mp_obj_t is larger than the native machine size.
Diffstat (limited to 'py/objcomplex.c')
0 files changed, 0 insertions, 0 deletions