diff options
| author | Mike Pall <mike> | 2021-06-01 00:28:00 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2021-06-01 00:28:00 +0200 |
| commit | b5dafe58912a70a7b5780ebbea06fac744e08b3a (patch) | |
| tree | 4e46c1913a17ae21c289766e08ae767f24e44aea /src | |
| parent | 839fb5bd72341d8e67b6cfc2053e2acffdb75567 (diff) | |
| parent | ae533e3a6c009b5df79b11cd5787d249202fa69c (diff) | |
| download | luajit-b5dafe58912a70a7b5780ebbea06fac744e08b3a.tar.gz luajit-b5dafe58912a70a7b5780ebbea06fac744e08b3a.tar.bz2 luajit-b5dafe58912a70a7b5780ebbea06fac744e08b3a.zip | |
Merge branch 'master' into v2.1
Diffstat (limited to 'src')
| -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 353786b9..f948002c 100644 --- a/src/lj_cconv.c +++ b/src/lj_cconv.c | |||
| @@ -568,7 +568,9 @@ void lj_cconv_ct_tv(CTState *cts, CType *d, | |||
| 568 | } | 568 | } |
| 569 | s = ctype_raw(cts, sid); | 569 | s = ctype_raw(cts, sid); |
| 570 | if (ctype_isfunc(s->info)) { | 570 | if (ctype_isfunc(s->info)) { |
| 571 | CTypeID did = ctype_typeid(cts, d); | ||
| 571 | sid = lj_ctype_intern(cts, CTINFO(CT_PTR, CTALIGN_PTR|sid), CTSIZE_PTR); | 572 | sid = lj_ctype_intern(cts, CTINFO(CT_PTR, CTALIGN_PTR|sid), CTSIZE_PTR); |
| 573 | d = ctype_get(cts, did); /* cts->tab may have been reallocated. */ | ||
| 572 | } else { | 574 | } else { |
| 573 | if (ctype_isenum(s->info)) s = ctype_child(cts, s); | 575 | if (ctype_isenum(s->info)) s = ctype_child(cts, s); |
| 574 | goto doconv; | 576 | goto doconv; |
