const LookupEntry *entry;
const char *str;
- if ((priv == NULL) || (field == None) ||
- ((type != TypeInt) && (type != TypeFloat)))
+ if ((priv == NULL) || (field == None) || (type != TypeInt))
{
return False;
}
if (uStrCaseCmp(str, entry->name) == 0)
{
val_rtrn->uval = entry->result;
- if (type == TypeFloat)
- val_rtrn->uval *= XkbGeomPtsPerMM;
return True;
}
}
return True;
}
}
- if ((expr->type != TypeInt) && (expr->type != TypeFloat))
+ if (expr->type != TypeInt)
{
ERROR("Found constant of type %s, expected a number\n",
exprTypeText(expr->type));
break;
}
}
- if ((expr->type != TypeInt) && (expr->type != TypeFloat))
+ if (expr->type != TypeInt)
{
ERROR
("Found constant of type %s where an int was expected\n",
return False;
}
val_rtrn->ival = expr->value.ival;
- if (expr->type == TypeFloat)
- val_rtrn->ival /= XkbGeomPtsPerMM;
return True;
case ExprIdent:
if (lookup)