mirror of
https://github.com/frida/tinycc
synced 2024-12-25 06:26:49 +03:00
38ab621b55
as there's overlap between handling types for binary and ternay operations. Factor this into a single routine (combine_types). This uses the structure that gen_op was following, and expr_cond was using as well in the past, which I find easier to reconvene with the standard language. But it reuses the new functions for diagnostics to improve (a little) on what GCC or clang produce :)
13 lines
110 B
Plaintext
13 lines
110 B
Plaintext
33_ternary_op.c:26: warning: pointer/integer mismatch in conditional expression
|
|
0
|
|
1
|
|
4
|
|
9
|
|
16
|
|
15
|
|
18
|
|
21
|
|
24
|
|
27
|
|
152
|