diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -484,8 +484,8 @@ static lu_mem traversetable (global_State *g, Table *h) { | |||
484 | const TValue *mode = gfasttm(g, h->metatable, TM_MODE); | 484 | const TValue *mode = gfasttm(g, h->metatable, TM_MODE); |
485 | markobjectN(g, h->metatable); | 485 | markobjectN(g, h->metatable); |
486 | if (mode && ttisstring(mode) && /* is there a weak mode? */ | 486 | if (mode && ttisstring(mode) && /* is there a weak mode? */ |
487 | ((weakkey = strchr(svalue(mode), 'k')), | 487 | (cast_void(weakkey = strchr(svalue(mode), 'k')), |
488 | (weakvalue = strchr(svalue(mode), 'v')), | 488 | cast_void(weakvalue = strchr(svalue(mode), 'v')), |
489 | (weakkey || weakvalue))) { /* is really weak? */ | 489 | (weakkey || weakvalue))) { /* is really weak? */ |
490 | black2gray(h); /* keep table gray */ | 490 | black2gray(h); /* keep table gray */ |
491 | if (!weakkey) /* strong keys? */ | 491 | if (!weakkey) /* strong keys? */ |