diff options
| author | Ian Simonson <ian.simonson@protonmail.com> | 2020-04-30 08:38:36 +1000 |
|---|---|---|
| committer | Ian Simonson <ian.simonson@protonmail.com> | 2020-04-30 12:48:27 +1000 |
| commit | e6fa0beb335ad8ecff005fef924c2a39ed748c56 (patch) | |
| tree | 51d8dbed193e84d0c0e5843be5acf35ce141b359 /src | |
| parent | a08675723cd39e3001327aa52b8af4b1c7bb0f32 (diff) | |
| download | zig-e6fa0beb335ad8ecff005fef924c2a39ed748c56.tar.gz zig-e6fa0beb335ad8ecff005fef924c2a39ed748c56.zip | |
Translate-C convert bools to int in complex expressions
Pre-requisite for having a test case for #5062
In complex C statements which are outside of macros,
it is valid C to perform e.g. a bitor between an
integer and a boolean `5 | (8 == 9)`
Currently this results in a zig error after translating
as `c_int | bool` is invalid Zig.
Detects if a sub-expression of a numeric operator is
boolean and if so converts it to int
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
