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 /lobject.c | |
parent | 0fb1644c6070daada206fc091f45b4bc39381ea2 (diff) | |
download | lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.gz lua-528665089402ea1fff2c36efb4c95c416f01c962.tar.bz2 lua-528665089402ea1fff2c36efb4c95c416f01c962.zip |
new macro 'ttisequal'
Diffstat (limited to 'lobject.c')
-rw-r--r-- | lobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.c,v 2.45 2010/12/10 19:03:46 roberto Exp roberto $ | 2 | ** $Id: lobject.c,v 2.46 2011/02/07 19:15:24 roberto Exp roberto $ |
3 | ** Some generic functions over Lua objects | 3 | ** Some generic functions over Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -71,7 +71,7 @@ int luaO_ceillog2 (unsigned int x) { | |||
71 | 71 | ||
72 | 72 | ||
73 | int luaO_rawequalObj (const TValue *t1, const TValue *t2) { | 73 | int luaO_rawequalObj (const TValue *t1, const TValue *t2) { |
74 | if (ttype(t1) != ttype(t2)) return 0; | 74 | if (!ttisequal(t1, t2)) return 0; |
75 | else switch (ttype(t1)) { | 75 | else switch (ttype(t1)) { |
76 | case LUA_TNIL: | 76 | case LUA_TNIL: |
77 | return 1; | 77 | return 1; |