summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSebastian Buchwald <UniQP@web.de>2019-09-28 13:33:24 +0200
committerSebastian Buchwald <UniQP@web.de>2019-09-28 13:33:24 +0200
commitb37391d5c6abeb599bd83fd74a19caa1b9217908 (patch)
treec1a312411892ee70c7d6568ca6be7352649b58da
parentb1485462789998e91258c8972de8ceda0cd63cd2 (diff)
Fix assertion
-rw-r--r--src/ast/constfold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/constfold.c b/src/ast/constfold.c
index adeac32..0c0461a 100644
--- a/src/ast/constfold.c
+++ b/src/ast/constfold.c
@@ -412,7 +412,7 @@ static long get_offsetof_offset(const offsetof_expression_t *expression)
for (;;) {
entity_t *member = find_compound_entry(compound, symbol);
- assert(member->kind = ENTITY_COMPOUND_MEMBER);
+ assert(member->kind == ENTITY_COMPOUND_MEMBER);
offset += member->compound_member.offset;
orig_type = member->declaration.type;