C translation issue with boolean expression #20005
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
upstream
An issue with a third party project that Zig uses.
Milestone
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Given the C header file:
Zig translates this to:
Which in turn results in
Expected Behavior
Translation shold probably use
@intFromBool
while assigning the int variable.The text was updated successfully, but these errors were encountered: