diff options
-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) { |