mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-19 21:43:27 +00:00
Fix handling of nil value markers in template tables.
Thanks to Peter Cawley. #1348 #1155
This commit is contained in:
parent
e0551670c9
commit
7db2d1b12a
@ -186,7 +186,7 @@ static void bcwrite_ktab(BCWriteCtx *ctx, char *p, const GCtab *t)
|
|||||||
} else {
|
} else {
|
||||||
MSize i = nhash;
|
MSize i = nhash;
|
||||||
for (;; node--)
|
for (;; node--)
|
||||||
if (!tvisnil(&node->key)) {
|
if (!tvisnil(&node->val)) {
|
||||||
bcwrite_ktabk(ctx, &node->key, 0);
|
bcwrite_ktabk(ctx, &node->key, 0);
|
||||||
bcwrite_ktabk(ctx, &node->val, 1);
|
bcwrite_ktabk(ctx, &node->val, 1);
|
||||||
if (--i == 0) break;
|
if (--i == 0) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user