the tp_sdef field of the type structure may only be used after checking tp_fund
This commit is contained in:
parent
9570000674
commit
0c6f2f490f
|
@ -571,12 +571,18 @@ int qual;
|
||||||
ASSERT(tp);
|
ASSERT(tp);
|
||||||
|
|
||||||
if (tp->tp_typequal & qual) return 1;
|
if (tp->tp_typequal & qual) return 1;
|
||||||
|
switch(tp->tp_fund) {
|
||||||
|
case UNION:
|
||||||
|
case STRUCT:
|
||||||
|
case ENUM:
|
||||||
sdf = tp->tp_sdef;
|
sdf = tp->tp_sdef;
|
||||||
while (sdf) {
|
while (sdf) {
|
||||||
if (recurqual(sdf->sd_type, qual))
|
if (recurqual(sdf->sd_type, qual))
|
||||||
return 1;
|
return 1;
|
||||||
sdf = sdf->sd_sdef;
|
sdf = sdf->sd_sdef;
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue