summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-08-02 13:42:34 +1000
committerDamien George <damien.p.george@gmail.com>2017-08-02 13:42:34 +1000
commit0f12082f5b7d957d920bce4e40ee589abce84e38 (patch)
treed46bba868566636b3b7825dfdebc31da88725357 /py
parentee0452509785faa41a3e15a3646130e35f3556cd (diff)
downloadmicropython-0f12082f5b7d957d920bce4e40ee589abce84e38.tar.gz
micropython-0f12082f5b7d957d920bce4e40ee589abce84e38.zip
py,extmod,stmhal: Use "static inline" for funcs that should be inline.
"STATIC inline" can expand to "inline" if STATIC is defined to nothing, and this case can lead to link errors.
Diffstat (limited to 'py')
-rw-r--r--py/modbuiltins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/modbuiltins.c b/py/modbuiltins.c
index 1711ae58b1..1c76b80739 100644
--- a/py/modbuiltins.c
+++ b/py/modbuiltins.c
@@ -540,7 +540,7 @@ STATIC mp_obj_t mp_builtin_sorted(size_t n_args, const mp_obj_t *args, mp_map_t
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_sorted_obj, 1, mp_builtin_sorted);
// See mp_load_attr() if making any changes
-STATIC inline mp_obj_t mp_load_attr_default(mp_obj_t base, qstr attr, mp_obj_t defval) {
+static inline mp_obj_t mp_load_attr_default(mp_obj_t base, qstr attr, mp_obj_t defval) {
mp_obj_t dest[2];
// use load_method, raising or not raising exception
((defval == MP_OBJ_NULL) ? mp_load_method : mp_load_method_maybe)(base, attr, dest);