lua

A copy of the Lua development repository
Log | Files | Refs | README

commit ec52149485e96ae2df805614a5a91c7385e217e6
parent 6980cb1aa7bb0238b9cb916320b0c6365bfbb10e
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed, 17 Jun 2009 14:53:26 -0300

'lua_lessthan' replaced by more generic 'lua_compare'

Diffstat:
Mltablib.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ltablib.c b/ltablib.c @@ -1,5 +1,5 @@ /* -** $Id: ltablib.c,v 1.45 2009/03/10 17:14:37 roberto Exp roberto $ +** $Id: ltablib.c,v 1.46 2009/03/23 14:26:12 roberto Exp roberto $ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ @@ -188,7 +188,7 @@ static int sort_comp (lua_State *L, int a, int b) { return res; } else /* a < b? */ - return lua_lessthan(L, a, b); + return lua_compare(L, a, b, LUA_OPLT); } static void auxsort (lua_State *L, int l, int u) {