diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.195 2002/06/03 20:11:07 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.196 2002/06/06 12:40:22 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 | */ |
@@ -226,7 +226,7 @@ LUA_API int lua_lessthan (lua_State *L, int index1, int index2) { | |||
226 | o1 = luaA_indexAcceptable(L, index1); | 226 | o1 = luaA_indexAcceptable(L, index1); |
227 | o2 = luaA_indexAcceptable(L, index2); | 227 | o2 = luaA_indexAcceptable(L, index2); |
228 | i = (o1 == NULL || o2 == NULL) ? 0 /* index out-of-range */ | 228 | i = (o1 == NULL || o2 == NULL) ? 0 /* index out-of-range */ |
229 | : luaV_cmp(L, o1, o2, CMP_LT); | 229 | : luaV_lessthan(L, o1, o2); |
230 | lua_unlock(L); | 230 | lua_unlock(L); |
231 | return i; | 231 | return i; |
232 | } | 232 | } |