aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-03-09 18:49:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-03-09 18:49:52 -0300
commit0969a971cd41921bd5ee72c1da880455bcca3bb4 (patch)
tree74be9a39706eeb1e7f4e5c2cf49693364c399790 /lobject.c
parentbe6d215f674f3d148d3f80a0553e8b2aa6da51d7 (diff)
downloadlua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.gz
lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.bz2
lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.zip
better use of "ASSERT".
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index 981e236e..e70d50ba 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.9 1997/12/26 18:38:16 roberto Exp roberto $ 2** $Id: lobject.c,v 1.10 1998/01/09 14:44:55 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*/
@@ -52,7 +52,7 @@ int luaO_equalObj (TObject *t1, TObject *t2)
52 case LUA_T_CPROTO: return fvalue(t1) == fvalue(t2); 52 case LUA_T_CPROTO: return fvalue(t1) == fvalue(t2);
53 case LUA_T_CLOSURE: return t1->value.cl == t2->value.cl; 53 case LUA_T_CLOSURE: return t1->value.cl == t2->value.cl;
54 default: 54 default:
55 lua_error("internal error in `lua_equalObj'"); 55 LUA_INTERNALERROR("invalid type");
56 return 0; /* UNREACHEABLE */ 56 return 0; /* UNREACHEABLE */
57 } 57 }
58} 58}