From 121176a8f46b51c82e8331766c0394fc03ee0cea Mon Sep 17 00:00:00 2001 From: Andy Balholm Date: Sat, 1 Dec 2018 20:13:31 -0800 Subject: [PATCH] Resolve const struct types. Fixes #807 (#808) Call CleanCType before searching for a matching struct. This gets rid of the const qualifier. --- transpiler/variables.go | 1 + 1 file changed, 1 insertion(+) diff --git a/transpiler/variables.go b/transpiler/variables.go index bf8824520..81b21f3b4 100644 --- a/transpiler/variables.go +++ b/transpiler/variables.go @@ -417,6 +417,7 @@ func transpileMemberExpr(n *ast.MemberExpr, p *program.Program) ( } lhsType = types.GenerateCorrectType(lhsType) + lhsType = types.CleanCType(lhsType) preStmts, postStmts = combinePreAndPostStmts(preStmts, postStmts, newPre, newPost)