summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDavid Lechner <david@pybricks.com>2020-06-13 13:05:48 -0500
committerDamien George <damien@micropython.org>2020-06-14 20:24:18 +1000
commitecd782631608636f300d6b885b4f310e546a2b3f (patch)
tree0b67214c6b89f37b0e1eca7a143b69b783008d06 /py
parentbd7c92e17d7544ad840038ef74b1998854060090 (diff)
tools/codeformat.py: Remove sizeof fixup.
Formatting for `* sizeof` was fixed in uncrustify v0.71, so we no longer need the fixups for it. Also, there was one file where the updated uncrustify caught a problem that the regex didn't pick up, which is updated in this commit. Signed-off-by: David Lechner <david@pybricks.com>
Diffstat (limited to 'py')
-rw-r--r--py/objfun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objfun.c b/py/objfun.c
index 3a63d8f43..f9a6b4ebc 100644
--- a/py/objfun.c
+++ b/py/objfun.c
@@ -197,8 +197,8 @@ STATIC void dump_args(const mp_obj_t *a, size_t sz) {
MP_BC_PRELUDE_SIG_DECODE_INTO(ip, n_state_out_var, n_exc_stack, scope_flags, n_pos_args, n_kwonly_args, n_def_args); \
\
/* state size in bytes */ \
- state_size_out_var = n_state_out_var *sizeof(mp_obj_t) \
- + n_exc_stack *sizeof(mp_exc_stack_t); \
+ state_size_out_var = n_state_out_var * sizeof(mp_obj_t) \
+ + n_exc_stack * sizeof(mp_exc_stack_t); \
}
#define INIT_CODESTATE(code_state, _fun_bc, _n_state, n_args, n_kw, args) \