aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
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] */