From: Mike Pall Date: Thu, 27 Jan 2011 15:07:02 +0000 (+0100) Subject: FFI: Fix symbol name redirection. X-Git-Tag: v2.0.0-beta6~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=279b6ec22e266dd366ab5bbb0265dc5b437b1b89;p=thirdparty%2FLuaJIT.git FFI: Fix symbol name redirection. --- 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) if (decl.redir) { /* Add attribute for redirected symbol name. */ CType *cta; CTypeID aid = lj_ctype_new(cp->cts, &cta); + ct = ctype_get(cp->cts, id); /* Table may have been reallocated. */ cta->info = CTINFO(CT_ATTRIB, CTATTRIB(CTA_REDIR)); cta->sib = ct->sib; ct->sib = aid;