From c90b88dd733b1831ab119c8454b98c07fa5bcf63 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 4 Aug 2022 21:21:45 -0700 Subject: [PATCH] expr: remove dereferencing and parens around calling 'Exdisc_t.typename' The compiler does not need to be explicitly told how to call through a function pointer. --- lib/expr/exgram.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/expr/exgram.h b/lib/expr/exgram.h index 8c36fe3a2..a58d43a1b 100644 --- a/lib/expr/exgram.h +++ b/lib/expr/exgram.h @@ -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: -- 2.40.0