mirror of
https://github.com/frida/tinycc
synced 2024-11-24 08:39:37 +03:00
workaround for function pointers in conditional expressions (Dave Dodge)
This commit is contained in:
parent
24a19cc37e
commit
0bea5c7f21
3
tcc.c
3
tcc.c
@ -7799,6 +7799,9 @@ static void expr_eq(void)
|
||||
} else if (bt1 == VT_PTR || bt2 == VT_PTR) {
|
||||
/* XXX: test pointer compatibility */
|
||||
type = type1;
|
||||
} else if (bt1 == VT_FUNC || bt2 == VT_FUNC) {
|
||||
/* XXX: test function pointer compatibility */
|
||||
type = type1;
|
||||
} else if (bt1 == VT_STRUCT || bt2 == VT_STRUCT) {
|
||||
/* XXX: test structure compatibility */
|
||||
type = type1;
|
||||
|
Loading…
Reference in New Issue
Block a user