mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
py: Removing dangling "else" to improve code format consistency.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user