mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 04:30:24 +01:00
Convert many object types structs to use C99 tagged initializer syntax.
This commit is contained in:
@@ -125,7 +125,7 @@ const mp_obj_type_t complex_type = {
|
||||
complex_binary_op, // binary_op
|
||||
NULL, // getiter
|
||||
NULL, // iternext
|
||||
{ { NULL, NULL }, }, // method list
|
||||
.methods = { { NULL, NULL }, },
|
||||
};
|
||||
|
||||
mp_obj_t mp_obj_new_complex(mp_float_t real, mp_float_t imag) {
|
||||
|
||||
Reference in New Issue
Block a user