harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2d26fb2b5ad4563b77d9ab7a78ee51f79840359f
parent c5bc81947bbf5f243754040dfab049e282739477
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 18 Sep 2021 10:02:25 +0200

check: don't pass hint to last compound expr

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Msrc/check.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/check.c b/src/check.c @@ -1340,8 +1340,7 @@ check_expr_compound(struct context *ctx, struct expression *lexpr; while (alist) { lexpr = xcalloc(1, sizeof(struct expression)); - check_expression(ctx, alist->expr, lexpr, - alist->next ? &builtin_type_void : hint); + check_expression(ctx, alist->expr, lexpr, &builtin_type_void); list->expr = lexpr; alist = alist->next;