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 upCython incorrectly casts with ctypedef and bint #3066
Comments
This comment has been minimized.
This comment has been minimized.
|
Yes, that looks wrong. I guess we're too strict about special-casing |
scoder
added
defect
Type Analysis
good first issue
help wanted
labels
Aug 14, 2019
This comment has been minimized.
This comment has been minimized.
|
I would like to take a stab at this issue, I may need some help though @scoder.
|
nsmanville
added a commit
to nsmanville/cython
that referenced
this issue
Aug 16, 2019
This comment has been minimized.
This comment has been minimized.
You could add
That doesn't sound wrong, at least. Let's see if it solves the issue at hand. |
mbuesch commentedAug 2, 2019
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.