Evan Haas a2ec77041b 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
2021-02-10 20:23:27 +02:00
..
2021-02-01 15:45:11 +02:00
2021-01-07 23:48:58 -08:00
2021-02-07 15:08:48 -07:00
2021-02-01 08:48:22 +02:00
2021-01-02 19:03:14 -07:00
2020-12-17 19:32:40 +01:00
2021-01-23 18:18:07 -07:00
2020-09-21 18:38:55 -07:00
2020-09-21 18:38:55 -07:00
2018-10-27 11:35:01 -04:00
2021-01-23 18:18:07 -07:00
2021-01-23 18:18:07 -07:00
2021-02-01 15:45:11 +02:00