aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-31 13:28:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-31 13:28:45 -0300
commit36e1390631a4b89f0a8a3111978780de0d53466c (patch)
tree21fea050e98d3cf844377c58503ccd15e00a43db /lobject.c
parent8f0f54ec3835f5d1637ae2720e2b4de6a177574a (diff)
downloadlua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.gz
lua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.bz2
lua-36e1390631a4b89f0a8a3111978780de0d53466c.zip
details.
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lobject.c b/lobject.c
index edfed796..14cc2313 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.34 2000/03/27 20:10:21 roberto Exp roberto $ 2** $Id: lobject.c,v 1.35 2000/03/29 20:19:20 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*/
@@ -42,11 +42,9 @@ int luaO_equalval (const TObject *t1, const TObject *t2) {
42 return avalue(t1) == avalue(t2); 42 return avalue(t1) == avalue(t2);
43 case TAG_CCLOSURE: case TAG_LCLOSURE: 43 case TAG_CCLOSURE: case TAG_LCLOSURE:
44 return clvalue(t1) == clvalue(t2); 44 return clvalue(t1) == clvalue(t2);
45 case TAG_NIL:
46 return 1;
47 default: 45 default:
48 LUA_INTERNALERROR(L, "invalid type"); 46 LUA_ASSERT(L, ttype(t1) == TAG_NIL, "invalid type");
49 return 0; /* UNREACHABLE */ 47 return 1; /* TAG_NIL */
50 } 48 }
51} 49}
52 50