Skip to content

Commit 44a3da5

Browse files
committed
Fix EXTENDED_FIELDS macro to work with clang
This appears to work with clang versions at least since 3.0.
1 parent 2997113 commit 44a3da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/obj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ struct _mp_obj_type_t {
640640
// - 2 or more parents: pointer to a tuple object containing the parent types
641641
const void *parent;
642642

643-
#define EXTENDED_FIELDS(...) .ext[0] = { __VA_ARGS__ }
643+
#define EXTENDED_FIELDS(...) .ext = {{ __VA_ARGS__ }}
644644
struct _mp_obj_type_ext ext[];
645645
};
646646

0 commit comments

Comments
 (0)