diff options
Diffstat (limited to 'ltests.c')
| -rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -408,7 +408,7 @@ static void checktable (global_State *g, Table *h) { | |||
| 408 | for (n = gnode(h, 0); n < limit; n++) { | 408 | for (n = gnode(h, 0); n < limit; n++) { |
| 409 | if (!isempty(gval(n))) { | 409 | if (!isempty(gval(n))) { |
| 410 | TValue k; | 410 | TValue k; |
| 411 | getnodekey(g->mainthread, &k, n); | 411 | getnodekey(mainthread(g), &k, n); |
| 412 | assert(!keyisnil(n)); | 412 | assert(!keyisnil(n)); |
| 413 | checkvalref(g, hgc, &k); | 413 | checkvalref(g, hgc, &k); |
| 414 | checkvalref(g, hgc, gval(n)); | 414 | checkvalref(g, hgc, gval(n)); |
| @@ -672,7 +672,7 @@ int lua_checkmemory (lua_State *L) { | |||
| 672 | l_mem totalin; /* total of objects that are in gray lists */ | 672 | l_mem totalin; /* total of objects that are in gray lists */ |
| 673 | l_mem totalshould; /* total of objects that should be in gray lists */ | 673 | l_mem totalshould; /* total of objects that should be in gray lists */ |
| 674 | if (keepinvariant(g)) { | 674 | if (keepinvariant(g)) { |
| 675 | assert(!iswhite(g->mainthread)); | 675 | assert(!iswhite(mainthread(g))); |
| 676 | assert(!iswhite(gcvalue(&g->l_registry))); | 676 | assert(!iswhite(gcvalue(&g->l_registry))); |
| 677 | } | 677 | } |
| 678 | assert(!isdead(g, gcvalue(&g->l_registry))); | 678 | assert(!isdead(g, gcvalue(&g->l_registry))); |
