Skip to content

Commit

Permalink
Fix incompatible types warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xioTechnologies committed Dec 5, 2024
1 parent 18a2c92 commit f4d8163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/Python-C-API/Quaternion.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static PyObject *quaternion_get_wxyz(Quaternion *self) {
const npy_intp dims[] = {4};
PyObject* array = PyArray_SimpleNewFromData(1, dims, NPY_FLOAT, self->quaternion.array);
Py_INCREF(self);
PyArray_SetBaseObject((PyArrayObject *) array, self);
PyArray_SetBaseObject((PyArrayObject *) array, (PyObject *) self);
return array;
}

Expand Down

0 comments on commit f4d8163

Please sign in to comment.