fixed problem with 'if (array)'
This commit is contained in:
parent
8b65bb004f
commit
45ecff07d3
@ -357,13 +357,20 @@ opnd2logical(expp, oper)
|
||||
register struct expr **expp;
|
||||
int oper;
|
||||
{
|
||||
int fund;
|
||||
int fund = (*expp)->ex_type->tp_fund;
|
||||
|
||||
if ((*expp)->ex_type->tp_fund == FUNCTION)
|
||||
function2pointer(*expp);
|
||||
if (fund == FUNCTION || fund == ARRAY) {
|
||||
expr_warning(*expp, "%s operand to %s",
|
||||
symbol2str(fund),
|
||||
symbol2str(oper));
|
||||
if (fund == FUNCTION) {
|
||||
function2pointer(*expp);
|
||||
}
|
||||
else array2pointer(*expp);
|
||||
}
|
||||
#ifndef NOBITFIELD
|
||||
else
|
||||
if ((*expp)->ex_type->tp_fund == FIELD)
|
||||
if (fund == FIELD)
|
||||
field2arith(expp);
|
||||
#endif NOBITFIELD
|
||||
switch (fund = (*expp)->ex_type->tp_fund) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user