mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
lua bugfix, see http://lua-users.org/lists/lua-l/2017-08/msg00065.html
This commit is contained in:
@@ -652,7 +652,7 @@ static void clearkeys (global_State *g, GCObject *l, GCObject *f) {
|
|||||||
Table *h = gco2t(l);
|
Table *h = gco2t(l);
|
||||||
Node *n, *limit = gnodelast(h);
|
Node *n, *limit = gnodelast(h);
|
||||||
for (n = gnode(h, 0); n < limit; n++) {
|
for (n = gnode(h, 0); n < limit; n++) {
|
||||||
if (!ttisnil(gval(n)) && (iscleared(g, gkey(n)))) {
|
if (iscleared(g, gkey(n))) {
|
||||||
setnilvalue(gval(n)); /* remove value ... */
|
setnilvalue(gval(n)); /* remove value ... */
|
||||||
removeentry(n); /* and remove entry from table */
|
removeentry(n); /* and remove entry from table */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user