py: Fix float/complex binop returning NULL; implement complex power.

This commit is contained in:
Damien George
2014-04-10 20:08:11 +01:00
parent f31b6ff334
commit ae491055fa
4 changed files with 45 additions and 5 deletions

View File

@@ -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);
}