Skip to content

Commit ab37ae9

Browse files
committed
Cleanup code
1 parent c312753 commit ab37ae9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

zxb/zxbparser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2863,9 +2863,8 @@ def p_funcdecl(p):
28632863
p[0].locals_size = SYMBOL_TABLE.leave_scope()
28642864
FUNCTION_LEVEL.pop()
28652865
p[0].entry.body = p[2]
2866-
2867-
entry = p[0].entry
2868-
entry.forwarded = False
2866+
p[0].local_symbol_table.owner = p[0].entry
2867+
p[0].entry.forwarded = False
28692868

28702869

28712870
def p_funcdeclforward(p):

0 commit comments

Comments
 (0)