From c5696e359284f523353b81c89ca4ac3fcca57dea Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 4 Aug 2022 21:16:27 -0700 Subject: [PATCH] expr: remove dereferencing and parens around calling 'Exdisc_t.binaryf' 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 f7c644005..57a17d88e 100644 --- a/lib/expr/exgram.h +++ b/lib/expr/exgram.h @@ -1014,7 +1014,7 @@ exclose(Expr_t* p, int all) static void checkBinary(Expr_t * p, Exnode_t * l, Exnode_t * ex, Exnode_t * r) { - if ((*p->disc->binaryf) (l, ex, r, 1) < 0) { + if (p->disc->binaryf(l, ex, r, 1) < 0) { if (r) exerror ("cannot apply operator %s to expressions of types %s and %s", -- 2.40.0