diff options
author | Mike Pall <mike> | 2011-01-27 16:07:02 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-27 16:07:02 +0100 |
commit | 279b6ec22e266dd366ab5bbb0265dc5b437b1b89 (patch) | |
tree | 36be8d4d29f9e703835a2c6ebe43d0c1242fd138 /src | |
parent | 3184f1716925f96b3d56c2795a0769bb3463f54e (diff) | |
download | luajit-279b6ec22e266dd366ab5bbb0265dc5b437b1b89.tar.gz luajit-279b6ec22e266dd366ab5bbb0265dc5b437b1b89.tar.bz2 luajit-279b6ec22e266dd366ab5bbb0265dc5b437b1b89.zip |
FFI: Fix symbol name redirection.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_cparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_cparse.c b/src/lj_cparse.c index 925894a3..b2d0ecf7 100644 --- a/src/lj_cparse.c +++ b/src/lj_cparse.c | |||
@@ -1762,6 +1762,7 @@ static void cp_decl_multi(CPState *cp) | |||
1762 | if (decl.redir) { /* Add attribute for redirected symbol name. */ | 1762 | if (decl.redir) { /* Add attribute for redirected symbol name. */ |
1763 | CType *cta; | 1763 | CType *cta; |
1764 | CTypeID aid = lj_ctype_new(cp->cts, &cta); | 1764 | CTypeID aid = lj_ctype_new(cp->cts, &cta); |
1765 | ct = ctype_get(cp->cts, id); /* Table may have been reallocated. */ | ||
1765 | cta->info = CTINFO(CT_ATTRIB, CTATTRIB(CTA_REDIR)); | 1766 | cta->info = CTINFO(CT_ATTRIB, CTATTRIB(CTA_REDIR)); |
1766 | cta->sib = ct->sib; | 1767 | cta->sib = ct->sib; |
1767 | ct->sib = aid; | 1768 | ct->sib = aid; |