From 2c68e66570206aa1496f9c76fcf2a1a0f550d692 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 3 Jun 2019 11:36:42 -0300 Subject: Details Several small changes from feedback on 5.4 alhpa rc1 (warnings, typos in the manual, and the like) --- ltablib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltablib.c') 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) { } /* after the loop, a[i] >= P and a[lo .. i - 1] < P */ /* next loop: repeat --j while P < a[j] */ - while (lua_geti(L, 1, --j), sort_comp(L, -3, -1)) { + while ((void)lua_geti(L, 1, --j), sort_comp(L, -3, -1)) { if (j < i) /* j < i but a[j] > P ?? */ luaL_error(L, "invalid order function for sorting"); lua_pop(L, 1); /* remove a[j] */ -- cgit v1.2.3-55-g6feb