diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-17 11:08:33 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-05-17 11:20:10 +0300 |
commit | ab7bf28489fde83c73da2a3a20b9eadb08e8cc81 (patch) | |
tree | 34c088b488835f630165080b28acad2030158458 /py/objfun.c | |
parent | c18ef2a9dd921f2dc589623ed43dd72cab94d3a4 (diff) |
py: More const usage.
Diffstat (limited to 'py/objfun.c')
-rw-r--r-- | py/objfun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/py/objfun.c b/py/objfun.c index 7915ddad0..27cba3abe 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -154,8 +154,8 @@ const char *mp_obj_code_get_name(const byte *code_info) { return qstr_str(block_name); } -const char *mp_obj_fun_get_name(mp_obj_t fun_in) { - mp_obj_fun_bc_t *fun = fun_in; +const char *mp_obj_fun_get_name(mp_const_obj_t fun_in) { + const mp_obj_fun_bc_t *fun = fun_in; const byte *code_info = fun->bytecode; return mp_obj_code_get_name(code_info); } |