From: Michael Beck Date: Sun, 31 Aug 2008 11:35:31 +0000 (+0000) Subject: - BugFix: function types have not size 0, so condition must be changed X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=69d5c744f683bd73ceaac40309ccd7db34389f33;p=cparser - BugFix: function types have not size 0, so condition must be changed [r21580] --- diff --git a/ast2firm.c b/ast2firm.c index 09f48fd..6ef6879 100644 --- a/ast2firm.c +++ b/ast2firm.c @@ -2152,9 +2152,8 @@ static ir_node *adjust_for_pointer_arithmetic(dbg_info *dbgi, unsigned elem_size = get_type_size_const(points_to); /* gcc extension: allow arithmetic with void * and function * */ - if (elem_size == 0 && - (is_type_atomic(points_to, ATOMIC_TYPE_VOID) || - is_type_function(points_to))) { + if ((elem_size == 0 && is_type_atomic(points_to, ATOMIC_TYPE_VOID)) || + is_type_function(points_to)) { elem_size = 1; }