Fix incorrect comparison
authorRan Benita <ran234@gmail.com>
Thu, 26 Jul 2012 22:47:32 +0000 (01:47 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 26 Jul 2012 22:47:32 +0000 (01:47 +0300)
ExprFieldRef goes into the ExprDef op field, not the type field.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/compat.c
src/xkbcomp/keytypes.c

index b4fa5b6..de0377b 100644 (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;
         }
index 26bcfaa..67dc9a0 100644 (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;
         }