Fix incorrect comparison
ExprFieldRef goes into the ExprDef op field, not the type field. Signed-off-by: Ran Benita <ran234@gmail.com>master
parent
89723b7cb7
commit
35fb8b94cb
|
@ -899,7 +899,7 @@ HandleInterpBody(CompatInfo *info, VarDef *def, SymInterpInfo *si)
|
||||||
ExprDef *arrayNdx;
|
ExprDef *arrayNdx;
|
||||||
|
|
||||||
for (; def != NULL; def = (VarDef *) def->common.next) {
|
for (; def != NULL; def = (VarDef *) def->common.next) {
|
||||||
if ((def->name) && (def->name->type == ExprFieldRef)) {
|
if ((def->name) && (def->name->op == ExprFieldRef)) {
|
||||||
ok = HandleInterpVar(info, def);
|
ok = HandleInterpVar(info, def);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
@ -782,7 +782,7 @@ HandleKeyTypeBody(KeyTypesInfo *info, VarDef *def, KeyTypeInfo *type)
|
||||||
ExprDef *arrayNdx;
|
ExprDef *arrayNdx;
|
||||||
|
|
||||||
for (; def != NULL; def = (VarDef *) def->common.next) {
|
for (; def != NULL; def = (VarDef *) def->common.next) {
|
||||||
if ((def->name) && (def->name->type == ExprFieldRef)) {
|
if ((def->name) && (def->name->op == ExprFieldRef)) {
|
||||||
ok = HandleKeyTypeVar(info, def);
|
ok = HandleKeyTypeVar(info, def);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue