-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Cython incorrectly casts with ctypedef and bint #3066
Comments
Yes, that looks wrong. I guess we're too strict about special-casing |
I would like to take a stab at this issue, I may need some help though @scoder.
|
You could add
That doesn't sound wrong, at least. Let's see if it solves the issue at hand. |
Check that Cython does not incorrectly cast with ctypedef and bint. Issue: cython#3066
Fixes issue cython#3065 Fixes issue cython#3066
Given the following code:
Results in this C code:
Which throws these compiler warnings:
The C boolean variable __pyx_v_x is incorrectly casted to PyObject * and back to bool.
This does not happen, if bint is used directly in the cdefs.
The text was updated successfully, but these errors were encountered: