Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REV: fixed error in Quarternion.h in python, incorrect type for pytho… #198

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flyingfalling
Copy link

…n dev libraries (expected it to be cast to PyObject* but it was returning type Quarternion*)

…n dev libraries (expected it to be cast to PyObject* but it was returning type Quarternion*)
@flyingfalling
Copy link
Author

Note, before fix I would get following error (snipped):

`
In file included from Python/Python-C-API/Ahrs.h:9:
Python/Python-C-API/Quaternion.h: In function ‘quaternion_get_wxyz’:
Python/Python-C-API/Quaternion.h:45:52: error: passing argument 2 of ‘(int (*)(PyArrayObject *, PyObject ))(PyArray_API + 2256)’ from incompatible pointer type [-Wincompatible-pointer-types]
45 | PyArray_SetBaseObject((PyArrayObject *) array, self);
| ^~~~
| |
| Quaternion *
Python/Python-C-API/Quaternion.h:45:52: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘Quaternion *’
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

`

@xioTechnologies
Copy link
Owner

Thank you. We will investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants