Skip to content

Use the recommended way to integrate Cython and NumPy #679

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

Merged
merged 1 commit into from
Jan 6, 2024
Merged

Use the recommended way to integrate Cython and NumPy #679

merged 1 commit into from
Jan 6, 2024

Conversation

fweimer-rh
Copy link
Contributor

This follows the example code in
https://cython.readthedocs.io/en/latest/src/tutorial/numpy.html#adding-types.

The previous version results in an int-conversion error with current compilers:

…-build/wrappers/python/freenect3.c:16598:3: error: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast
16598 |   import_array();
      |   ^~~~~~~~~~~~

Related to:

This follows the example code in
<https://cython.readthedocs.io/en/latest/src/tutorial/numpy.html#adding-types>.

The previous version results in an int-conversion error with current
compilers:

…-build/wrappers/python/freenect3.c:16598:3: error: returning ‘void *’ from a function with return type ‘int’ makes integer from pointer without a cast
16598 |   import_array();
      |   ^~~~~~~~~~~~
@piedar piedar added this to the next milestone Jan 5, 2024
@piedar piedar merged commit 196f95d into OpenKinect:master Jan 6, 2024
@fweimer-rh fweimer-rh deleted the c99 branch January 8, 2024 08:01
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