translate-c: call @boolToInt on return value when necessary

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
a2ec77041bEvan Haas committed on 2/10/2021, 6:23:27 PM· committed by Veikka Tuominenparent1480c42
3 files changedLine totals unavailable