diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-06 12:51:41 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-06 12:51:41 -0300 |
commit | 0dbf0c5953a3d72deebc7e41840a0e73b46de8bc (patch) | |
tree | b4a525660cba017d7985c37393f50d6b8bee9e4b /lapi.c | |
parent | 85dcb411a8454de0bc1c2c60a24af1588e436c23 (diff) | |
download | lua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.tar.gz lua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.tar.bz2 lua-0dbf0c5953a3d72deebc7e41840a0e73b46de8bc.zip |
new format for test intructions (handle NaN correctly)
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.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 | } |