aboutsummaryrefslogtreecommitdiffhomepage
path: root/c.c
diff options
context:
space:
mode:
author lemon<lsof@mailbox.org>2025-09-15 10:46:09 +0200
committer lemon<lsof@mailbox.org>2025-09-15 10:46:09 +0200
commit7b1849402f33938aed8065ac9f4fab2ee8f22966 (patch)
tree82e1b72a08560f6a9410b30431f77aa398f59069 /c.c
parent474c9bc73c79ac7f366e590506718d571525ad5d (diff)
a little refactoring and cleanup
Diffstat (limited to 'c.c')
-rw-r--r--c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c.c b/c.c
index ef4a7a1..5ccce27 100644
--- a/c.c
+++ b/c.c
@@ -3540,7 +3540,7 @@ docomp(struct comp *cm)
decl.isdef = st.varini;
if (st.funcdef) {
const struct typedata *td = &typedata[decl.ty.dat];
- struct function fn = { cm->fnarena, decl.name, .globl = decl.scls != SCSTATIC };
+ struct function fn = { &cm->fnarena, decl.name, .globl = decl.scls != SCSTATIC };
fn.fnty = decl.ty;
fn.retty = td->ret;
decl.isdef = 1;