aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-03 11:36:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-03 11:36:42 -0300
commit2c68e66570206aa1496f9c76fcf2a1a0f550d692 (patch)
treebcc6fd7939b12ef3a636d88ce0ac38da036660d8 /lgc.c
parent7d0f41df41e9c513e7282356541b54beaf9ed20d (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index e9189ac3..69d8a186 100644
--- a/lgc.c
+++ b/lgc.c
@@ -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? */