mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix recording of indexing a struct pointer ctype object itself.
This commit is contained in:
parent
8a38af2f99
commit
fe288e7b83
@ -794,7 +794,7 @@ again:
|
||||
}
|
||||
} else if (tref_isstr(idx)) {
|
||||
GCstr *name = strV(&rd->argv[1]);
|
||||
if (cd->ctypeid == CTID_CTYPEID)
|
||||
if (cd && cd->ctypeid == CTID_CTYPEID)
|
||||
ct = ctype_raw(cts, crec_constructor(J, cd, ptr));
|
||||
if (ctype_isstruct(ct->info)) {
|
||||
CTSize fofs;
|
||||
@ -835,6 +835,7 @@ again:
|
||||
CType *cct = ctype_rawchild(cts, ct);
|
||||
if (ctype_isstruct(cct->info)) {
|
||||
ct = cct;
|
||||
cd = NULL;
|
||||
if (tref_isstr(idx)) goto again;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user