mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
luaL_verror -> luaL_error
This commit is contained in:
parent
e812aa2002
commit
d8678edddc
4 changed files with 25 additions and 25 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ltablib.c,v 1.5 2002/06/05 17:24:04 roberto Exp roberto $
|
||||
** $Id: ltablib.c,v 1.6 2002/06/13 13:44:50 roberto Exp roberto $
|
||||
** Library for Table Manipulation
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -171,12 +171,12 @@ static void auxsort (lua_State *L, int l, int u) {
|
|||
for (;;) { /* invariant: a[l..i] <= P <= a[j..u] */
|
||||
/* repeat ++i until a[i] >= P */
|
||||
while (lua_rawgeti(L, 1, ++i), sort_comp(L, -1, -2)) {
|
||||
if (i>u) luaL_verror(L, "invalid order function for sorting");
|
||||
if (i>u) luaL_error(L, "invalid order function for sorting");
|
||||
lua_pop(L, 1); /* remove a[i] */
|
||||
}
|
||||
/* repeat --j until a[j] <= P */
|
||||
while (lua_rawgeti(L, 1, --j), sort_comp(L, -3, -1)) {
|
||||
if (j<l) luaL_verror(L, "invalid order function for sorting");
|
||||
if (j<l) luaL_error(L, "invalid order function for sorting");
|
||||
lua_pop(L, 1); /* remove a[j] */
|
||||
}
|
||||
if (j<i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue