diff options
-rw-r--r-- | src/lj_cconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_cconv.c b/src/lj_cconv.c index 9c1ecdf5..55a72657 100644 --- a/src/lj_cconv.c +++ b/src/lj_cconv.c | |||
@@ -557,7 +557,9 @@ void lj_cconv_ct_tv(CTState *cts, CType *d, | |||
557 | } | 557 | } |
558 | s = ctype_raw(cts, sid); | 558 | s = ctype_raw(cts, sid); |
559 | if (ctype_isfunc(s->info)) { | 559 | if (ctype_isfunc(s->info)) { |
560 | CTypeID did = ctype_typeid(cts, d); | ||
560 | sid = lj_ctype_intern(cts, CTINFO(CT_PTR, CTALIGN_PTR|sid), CTSIZE_PTR); | 561 | sid = lj_ctype_intern(cts, CTINFO(CT_PTR, CTALIGN_PTR|sid), CTSIZE_PTR); |
562 | d = ctype_get(cts, did); /* cts->tab may have been reallocated. */ | ||
561 | } else { | 563 | } else { |
562 | if (ctype_isenum(s->info)) s = ctype_child(cts, s); | 564 | if (ctype_isenum(s->info)) s = ctype_child(cts, s); |
563 | goto doconv; | 565 | goto doconv; |