From 48ffd4eb6d9b9c8b0aefd264d73955bd2a612d05 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Sun, 14 Mar 2021 18:07:52 -0700 Subject: [PATCH] cc: fix field access bug --- tools/cc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cc.py b/tools/cc.py index b522fd9..3b76be7 100644 --- a/tools/cc.py +++ b/tools/cc.py @@ -1058,6 +1058,7 @@ class CcInterp(lark.visitors.Interpreter): else: tree.children[0].type = PointerType(pointed=strct.field_type(ch_field)) tree.children = [tree.children[0]] + self.visit_children(tree) self._deref(tree) def post_increment(self, tree):