aboutsummaryrefslogtreecommitdiff
path: root/ltablib.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 /ltablib.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 'ltablib.c')
-rw-r--r--ltablib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltablib.c b/ltablib.c
index 48a6bdfe..7e7a1012 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -306,7 +306,7 @@ static IdxT partition (lua_State *L, IdxT lo, IdxT up) {
306 } 306 }
307 /* after the loop, a[i] >= P and a[lo .. i - 1] < P */ 307 /* after the loop, a[i] >= P and a[lo .. i - 1] < P */
308 /* next loop: repeat --j while P < a[j] */ 308 /* next loop: repeat --j while P < a[j] */
309 while (lua_geti(L, 1, --j), sort_comp(L, -3, -1)) { 309 while ((void)lua_geti(L, 1, --j), sort_comp(L, -3, -1)) {
310 if (j < i) /* j < i but a[j] > P ?? */ 310 if (j < i) /* j < i but a[j] > P ?? */
311 luaL_error(L, "invalid order function for sorting"); 311 luaL_error(L, "invalid order function for sorting");
312 lua_pop(L, 1); /* remove a[j] */ 312 lua_pop(L, 1); /* remove a[j] */