Fix incorrect comparison

ExprFieldRef goes into the ExprDef op field, not the type field.

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-07-27 01:47:32 +03:00
parent 89723b7cb7
commit 35fb8b94cb
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}