From ae491055fae927dbdfabeea69ffee166a9720a68 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 10 Apr 2014 20:08:11 +0100 Subject: py: Fix float/complex binop returning NULL; implement complex power. --- py/objfloat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/objfloat.c') diff --git a/py/objfloat.c b/py/objfloat.c index 8ccba1024..1f96ac18e 100644 --- a/py/objfloat.c +++ b/py/objfloat.c @@ -136,7 +136,7 @@ check_zero_division: case MP_BINARY_OP_MORE_EQUAL: return MP_BOOL(lhs_val >= rhs_val); default: - return NULL; // op not supported + return MP_OBJ_NULL; // op not supported } return mp_obj_new_float(lhs_val); } -- cgit v1.2.3