aboutsummaryrefslogtreecommitdiff
path: root/src/range_set.cpp
diff options
context:
space:
mode:
authorIan Simonson <ian.simonson@protonmail.com>2020-04-30 08:38:36 +1000
committerIan Simonson <ian.simonson@protonmail.com>2020-04-30 12:48:27 +1000
commite6fa0beb335ad8ecff005fef924c2a39ed748c56 (patch)
tree51d8dbed193e84d0c0e5843be5acf35ce141b359 /src/range_set.cpp
parenta08675723cd39e3001327aa52b8af4b1c7bb0f32 (diff)
downloadzig-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/range_set.cpp')
0 files changed, 0 insertions, 0 deletions