aboutsummaryrefslogtreecommitdiff
path: root/ltablib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-17 14:53:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-17 14:53:50 -0300
commitec52149485e96ae2df805614a5a91c7385e217e6 (patch)
tree7c08d1abcfff41ca01ff98fde423231e3412bf79 /ltablib.c
parent6980cb1aa7bb0238b9cb916320b0c6365bfbb10e (diff)
downloadlua-ec52149485e96ae2df805614a5a91c7385e217e6.tar.gz
lua-ec52149485e96ae2df805614a5a91c7385e217e6.tar.bz2
lua-ec52149485e96ae2df805614a5a91c7385e217e6.zip
'lua_lessthan' replaced by more generic 'lua_compare'
Diffstat (limited to 'ltablib.c')
-rw-r--r--ltablib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltablib.c b/ltablib.c
index 4ea5c2f9..2e747edb 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.45 2009/03/10 17:14:37 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.46 2009/03/23 14:26:12 roberto Exp roberto $
3** Library for Table Manipulation 3** Library for Table Manipulation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -188,7 +188,7 @@ static int sort_comp (lua_State *L, int a, int b) {
188 return res; 188 return res;
189 } 189 }
190 else /* a < b? */ 190 else /* a < b? */
191 return lua_lessthan(L, a, b); 191 return lua_compare(L, a, b, LUA_OPLT);
192} 192}
193 193
194static void auxsort (lua_State *L, int l, int u) { 194static void auxsort (lua_State *L, int l, int u) {