diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
commit | 2c68e66570206aa1496f9c76fcf2a1a0f550d692 (patch) | |
tree | bcc6fd7939b12ef3a636d88ce0ac38da036660d8 /lgc.c | |
parent | 7d0f41df41e9c513e7282356541b54beaf9ed20d (diff) | |
download | lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.gz lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.bz2 lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.zip |
Details
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
Diffstat (limited to '')
-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? */ |