aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 1bc5f340..54ec5f3b 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 1.186 2002/05/01 20:48:12 roberto Exp roberto $ 2** $Id: lapi.c,v 1.187 2002/05/02 16:55:55 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -231,7 +231,7 @@ LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {
231 o1 = luaA_indexAcceptable(L, index1); 231 o1 = luaA_indexAcceptable(L, index1);
232 o2 = luaA_indexAcceptable(L, index2); 232 o2 = luaA_indexAcceptable(L, index2);
233 i = (o1 == NULL || o2 == NULL) ? 0 /* index out-of-range */ 233 i = (o1 == NULL || o2 == NULL) ? 0 /* index out-of-range */
234 : luaV_lessthan(L, o1, o2); 234 : luaV_cmp(L, o1, o2, CMP_LT);
235 lua_unlock(L); 235 lua_unlock(L);
236 return i; 236 return i;
237} 237}