Skip to content

Commit 322ca42

Browse files
Fix incompatible types warning
1 parent 18a2c92 commit 322ca42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/Python-C-API/Quaternion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static PyObject *quaternion_get_wxyz(Quaternion *self) {
4242
const npy_intp dims[] = {4};
4343
PyObject* array = PyArray_SimpleNewFromData(1, dims, NPY_FLOAT, self->quaternion.array);
4444
Py_INCREF(self);
45-
PyArray_SetBaseObject((PyArrayObject *) array, self);
45+
PyArray_SetBaseObject((PyArrayObject *) array, (PyObject *) self);
4646
return array;
4747
}
4848

0 commit comments

Comments
 (0)