diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.131 2011/02/07 19:15:24 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.132 2011/04/05 14:26:23 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -239,7 +239,7 @@ int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) { | |||
239 | 239 | ||
240 | int luaV_equalval_ (lua_State *L, const TValue *t1, const TValue *t2) { | 240 | int luaV_equalval_ (lua_State *L, const TValue *t1, const TValue *t2) { |
241 | const TValue *tm; | 241 | const TValue *tm; |
242 | lua_assert(ttype(t1) == ttype(t2)); | 242 | lua_assert(ttisequal(t1, t2)); |
243 | switch (ttype(t1)) { | 243 | switch (ttype(t1)) { |
244 | case LUA_TNIL: return 1; | 244 | case LUA_TNIL: return 1; |
245 | case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2)); | 245 | case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2)); |