]> granicus.if.org Git - graphviz/commitdiff
expr xConvert: remove shadowing of 'expr' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 4 Jan 2023 04:25:01 +0000 (20:25 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 Jan 2023 19:57:18 +0000 (11:57 -0800)
lib/expr/exeval.c

index 410dbcaca67736653999a13577ad4c1e5a91105c..2b1833e4adf34f3e09e825a56da0cc00e74502b8 100644 (file)
@@ -1068,16 +1068,15 @@ static Extype_t exsubstr(Expr_t *ex, Exnode_t *exnode, void *env) {
 /* xConvert:
  * Convert from external type.
  */
-static void
-xConvert(Expr_t * ex, Exnode_t * expr, int type, Extype_t v,
+static void xConvert(Expr_t *ex, Exnode_t *exnode, int type, Extype_t v,
         Exnode_t * tmp)
 {
-       *tmp = *expr->data.operand.left;
+       *tmp = *exnode->data.operand.left;
        tmp->data.constant.value = v;
        if (ex->disc->convertf(tmp, type, 0)) {
                exerror("%s: cannot convert %s value to %s",
-                       expr->data.operand.left->data.variable.symbol->name,
-                       extypename(ex, expr->data.operand.left->type), extypename(ex, type));
+                       exnode->data.operand.left->data.variable.symbol->name,
+                       extypename(ex, exnode->data.operand.left->type), extypename(ex, type));
        }
        tmp->type = type;
 }