History

workaround for function pointers in conditional expressions (Dave Dodge)

bellard committed 20 years ago

Commit 0bea5c71 parent 24a19cc1 file · +3 −0Browse files

Unified · Split

tcc.c+3−0
@@ -7799,6 +7799,9 @@ static void expr_eq(void) · 7798 unmodified lines
77997799 } else if (bt1 == VT_PTR || bt2 == VT_PTR) {
78007800 /* XXX: test pointer compatibility */
78017801 type = type1;
7802+ } else if (bt1 == VT_FUNC || bt2 == VT_FUNC) {
7803+ /* XXX: test function pointer compatibility */
7804+ type = type1;
78027805 } else if (bt1 == VT_STRUCT || bt2 == VT_STRUCT) {
78037806 /* XXX: test structure compatibility */
78047807 type = type1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t