FFI: Force snapshot after store to cdata.

This commit is contained in:
Mike Pall 2011-01-05 20:28:57 +01:00
parent eaf88dfb3a
commit 3b468ceedb

View File

@ -470,6 +470,7 @@ index_struct:
J->base[0] = crec_tv_ct(J, ct, sid, ptr);
} else { /* __newindex metamethod. */
rd->nres = 0;
J->needsnap = 1;
crec_ct_tv(J, ct, ptr, J->base[2], &rd->argv[2]);
}
}