translate-c generates invalid code when C input is coerce-negating bool expressions #10175
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
Milestone
Zig Version
0.9.0-dev.1675+3d528161c
Steps to Reproduce
To reproduce, feed this to
zig translate-c
:Expected Behavior
I expected working C code for the sign function, maybe something like this:
Actual Behavior
zig translate-c currently generates this:
which causes
when trying to compile the code.
The text was updated successfully, but these errors were encountered: