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;
|
||||
|
||||
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);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -782,7 +782,7 @@ HandleKeyTypeBody(KeyTypesInfo *info, VarDef *def, KeyTypeInfo *type)
|
|||
ExprDef *arrayNdx;
|
||||
|
||||
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);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue