summaryrefslogtreecommitdiffstatshomepage
path: root/py/objcomplex.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/objcomplex.c')
-rw-r--r--py/objcomplex.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index dc3439143a..1036bae420 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -85,13 +85,12 @@ static mp_obj_t complex_binary_op(int op, mp_obj_t lhs_in, mp_obj_t rhs_in) {
}
const mp_obj_type_t complex_type = {
- .base = { &mp_const_type },
- .name = "complex",
+ { &mp_const_type },
+ "complex",
.print = complex_print,
.make_new = complex_make_new,
.unary_op = complex_unary_op,
.binary_op = complex_binary_op,
- .methods = { { NULL, NULL }, },
};
mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag) {