aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-31 15:24:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-05-31 15:24:36 -0300
commit9b7dddad7d3f4546f838834d9674eaf0f2fca3dd (patch)
treecf0f283b5177d481023d0724d1c08a95d7482005 /lapi.c
parent3f04a9f2c07bc06dddbc473178b314f1fd686701 (diff)
downloadlua-9b7dddad7d3f4546f838834d9674eaf0f2fca3dd.tar.gz
lua-9b7dddad7d3f4546f838834d9674eaf0f2fca3dd.tar.bz2
lua-9b7dddad7d3f4546f838834d9674eaf0f2fca3dd.zip
no need for two different implementations for equality (one raw and
one with metamethods)
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index ceb17bca..7388db33 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.144 2010/12/29 18:00:23 roberto Exp roberto $ 2** $Id: lapi.c,v 2.145 2011/04/05 14:26:23 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*/
@@ -278,7 +278,7 @@ LUA_API int lua_rawequal (lua_State *L, int index1, int index2) {
278 StkId o1 = index2addr(L, index1); 278 StkId o1 = index2addr(L, index1);
279 StkId o2 = index2addr(L, index2); 279 StkId o2 = index2addr(L, index2);
280 return (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 280 return (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
281 : luaO_rawequalObj(o1, o2); 281 : luaV_rawequalObj(o1, o2);
282} 282}
283 283
284 284