From 0b63d79b36790febd4c081bf8d6737df27529f8d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 13 May 2019 16:20:40 -0300 Subject: Details - 'luaL_setfuncs' avoids creating closures for placeholders. - Fixed some warnings about unused values in comma expressions. - Comments. --- ltablib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltablib.c') diff --git a/ltablib.c b/ltablib.c index a9169f9e..48a6bdfe 100644 --- a/ltablib.c +++ b/ltablib.c @@ -299,7 +299,7 @@ static IdxT partition (lua_State *L, IdxT lo, IdxT up) { /* loop invariant: a[lo .. i] <= P <= a[j .. up] */ for (;;) { /* next loop: repeat ++i while a[i] < P */ - while (lua_geti(L, 1, ++i), sort_comp(L, -1, -2)) { + while ((void)lua_geti(L, 1, ++i), sort_comp(L, -1, -2)) { if (i == up - 1) /* a[i] < P but a[up - 1] == P ?? */ luaL_error(L, "invalid order function for sorting"); lua_pop(L, 1); /* remove a[i] */ -- cgit v1.2.3-55-g6feb