Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cython incorrectly casts with ctypedef and bint #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.
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.