diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-17 14:53:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-06-17 14:53:50 -0300 |
commit | ec52149485e96ae2df805614a5a91c7385e217e6 (patch) | |
tree | 7c08d1abcfff41ca01ff98fde423231e3412bf79 /ltablib.c | |
parent | 6980cb1aa7bb0238b9cb916320b0c6365bfbb10e (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
194 | static void auxsort (lua_State *L, int l, int u) { | 194 | static void auxsort (lua_State *L, int l, int u) { |