aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.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 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 45788a01..d7000791 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1151,7 +1151,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
1151 TValue *rc = vRC(i); 1151 TValue *rc = vRC(i);
1152 lua_Unsigned n; 1152 lua_Unsigned n;
1153 if (ttisinteger(rc) /* fast track for integers? */ 1153 if (ttisinteger(rc) /* fast track for integers? */
1154 ? (n = ivalue(rc), luaV_fastgeti(L, rb, n, slot)) 1154 ? (cast_void(n = ivalue(rc)), luaV_fastgeti(L, rb, n, slot))
1155 : luaV_fastget(L, rb, rc, slot, luaH_get)) { 1155 : luaV_fastget(L, rb, rc, slot, luaH_get)) {
1156 setobj2s(L, ra, slot); 1156 setobj2s(L, ra, slot);
1157 } 1157 }
@@ -1204,7 +1204,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) {
1204 TValue *rc = RKC(i); /* value */ 1204 TValue *rc = RKC(i); /* value */
1205 lua_Unsigned n; 1205 lua_Unsigned n;
1206 if (ttisinteger(rb) /* fast track for integers? */ 1206 if (ttisinteger(rb) /* fast track for integers? */
1207 ? (n = ivalue(rb), luaV_fastgeti(L, s2v(ra), n, slot)) 1207 ? (cast_void(n = ivalue(rb)), luaV_fastgeti(L, s2v(ra), n, slot))
1208 : luaV_fastget(L, s2v(ra), rb, slot, luaH_get)) { 1208 : luaV_fastget(L, s2v(ra), rb, slot, luaH_get)) {
1209 luaV_finishfastset(L, s2v(ra), slot, rc); 1209 luaV_finishfastset(L, s2v(ra), slot, rc);
1210 } 1210 }