mirror of
https://github.com/ziglang/zig.git
synced 2026-02-02 04:33:37 +00:00
In C, if a function has return type `int` and the return expression is a boolean expression, there is no implicit cast. Therefore the translated Zig code needs to call @boolToInt() on the result. Written with feedback from @Vexu Fixes #6215