From 5b2f62aff312949c9c7edec6cfaaf4f97d93c442 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 24 Nov 2017 12:16:21 +1100 Subject: [PATCH] py/opmethods: Include the correct header for binary op enums. By directly including runtime0.h the mpconfig.h settings are not included and so the enums in runtime0.h can be incorrect. --- py/opmethods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/opmethods.c b/py/opmethods.c index 1200ba39e..31901bb52 100644 --- a/py/opmethods.c +++ b/py/opmethods.c @@ -24,7 +24,7 @@ * THE SOFTWARE. */ -#include "py/runtime0.h" +#include "py/obj.h" #include "py/builtin.h" STATIC mp_obj_t op_getitem(mp_obj_t self_in, mp_obj_t key_in) {