mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix arithmetic ctype metamethods for references.
This commit is contained in:
parent
31e0774a9e
commit
5f08a50506
@ -311,7 +311,7 @@ cTValue *lj_ctype_meta(CTState *cts, CTypeID id, MMS mm)
|
|||||||
{
|
{
|
||||||
CType *ct = ctype_get(cts, id);
|
CType *ct = ctype_get(cts, id);
|
||||||
cTValue *tv;
|
cTValue *tv;
|
||||||
while (ctype_isattrib(ct->info)) {
|
while (ctype_isattrib(ct->info) || ctype_isref(ct->info)) {
|
||||||
id = ctype_cid(ct->info);
|
id = ctype_cid(ct->info);
|
||||||
ct = ctype_get(cts, id);
|
ct = ctype_get(cts, id);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user