From 3f759b71c63f5e01df18a6e204c50f78d1b6a20b Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 31 Jan 2014 00:42:12 +0000 Subject: py: Add MICROPY_ENABLE_FLOAT around a float specific piece of code. --- py/runtime.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py') diff --git a/py/runtime.c b/py/runtime.c index b1027de932..ea96ca9f7a 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -616,10 +616,12 @@ mp_obj_t rt_binary_op(int op, mp_obj_t lhs, mp_obj_t rhs) { return MP_OBJ_NEW_SMALL_INT(lhs_val); } return mp_obj_new_int(lhs_val); +#if MICROPY_ENABLE_FLOAT } else if (MP_OBJ_IS_TYPE(rhs, &float_type)) { return mp_obj_float_binary_op(op, lhs_val, rhs); } else if (MP_OBJ_IS_TYPE(rhs, &complex_type)) { return mp_obj_complex_binary_op(op, lhs_val, 0, rhs); +#endif } } -- cgit v1.2.3