]> granicus.if.org Git - graphviz/commitdiff
expr: remove dereferencing and parens around calling 'Exdisc_t.typename'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 04:21:45 +0000 (21:21 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 5 Aug 2022 04:21:45 +0000 (21:21 -0700)
The compiler does not need to be explicitly told how to call through a function
pointer.

lib/expr/exgram.h

index 8c36fe3a27b3b4c1646607b07f8735ed11e2bc5f..a58d43a1b6e365f1e1afe363e2ab692bb1c75835 100644 (file)
@@ -430,7 +430,7 @@ static int  typecast[6][6] =
 char *extypename(Expr_t * p, int type) {
        if (BUILTIN(type))
            return TYPENAME(type);
-       return (p->disc->typename) (type);
+       return p->disc->typename(type);
 }
 
 /* exnoncast: