aboutsummaryrefslogtreecommitdiff
path: root/py/objfun.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-02-20 00:17:13 +1100
committerDamien George <damien.p.george@gmail.com>2020-02-28 10:29:27 +1100
commita1b18b3ba7ccbf2c4d73608079844d89360688a3 (patch)
tree00ffb10d1bbe77227350e7019759c5a67917a1e7 /py/objfun.c
parent4b23e98fb0851eb74ec269022a1e86702e387b23 (diff)
py: Removing dangling "else" to improve code format consistency.
Diffstat (limited to 'py/objfun.c')
-rw-r--r--py/objfun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 984d2000a..dbff2faa0 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -456,12 +456,12 @@ STATIC mp_uint_t convert_obj_for_inline_asm(mp_obj_t obj) {
return (mp_uint_t)mp_obj_str_get_data(obj, &l);
} else {
const mp_obj_type_t *type = mp_obj_get_type(obj);
-#if MICROPY_PY_BUILTINS_FLOAT
+ #if MICROPY_PY_BUILTINS_FLOAT
if (type == &mp_type_float) {
// convert float to int (could also pass in float registers)
return (mp_int_t)mp_obj_float_get(obj);
- } else
-#endif
+ }
+ #endif
if (type == &mp_type_tuple || type == &mp_type_list) {
// pointer to start of tuple (could pass length, but then could use len(x) for that)
size_t len;