mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Force snapshot after store to cdata.
This commit is contained in:
parent
eaf88dfb3a
commit
3b468ceedb
@ -470,6 +470,7 @@ index_struct:
|
|||||||
J->base[0] = crec_tv_ct(J, ct, sid, ptr);
|
J->base[0] = crec_tv_ct(J, ct, sid, ptr);
|
||||||
} else { /* __newindex metamethod. */
|
} else { /* __newindex metamethod. */
|
||||||
rd->nres = 0;
|
rd->nres = 0;
|
||||||
|
J->needsnap = 1;
|
||||||
crec_ct_tv(J, ct, ptr, J->base[2], &rd->argv[2]);
|
crec_ct_tv(J, ct, ptr, J->base[2], &rd->argv[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user