diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-05 15:32:06 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-04-05 15:32:06 -0300 |
commit | 528665089402ea1fff2c36efb4c95c416f01c962 (patch) | |
tree | 869a5d408b21dbb86559e0ced98b39d507db2cc3 /lvm.c | |
parent | 0fb1644c6070daada206fc091f45b4bc39381ea2 (diff) | |
download | lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.gz lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.bz2 lua-528665089402ea1fff2c36efb4c95c416f01c962.zip |
new macro 'ttisequal'
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)); |