Skip to content

Commit cdc144f

Browse files
committed
bindings: Null-terminate PyMemberDef arrays
It was causing weirdness in the CPython runtime, but only on macOS. I should probably instrument a bit to find other potential issues.
1 parent d6a2870 commit cdc144f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/python/py_types.c

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ PyTypeObject type_py_vector = {
105105
PyMemberDef py_coord_members[] = {
106106
{ "u", T_FLOAT, offsetof(py_coord, val.u), 0, "u" },
107107
{ "v", T_FLOAT, offsetof(py_coord, val.v), 0, "v" },
108+
{ NULL },
108109
};
109110

110111
Py_ssize_t py_coord_length(PyObject *o) {

0 commit comments

Comments
 (0)