aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lobject.c b/lobject.c
index a2fd786b..a341f055 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.57 2000/12/04 18:33:40 roberto Exp roberto $ 2** $Id: lobject.c,v 1.58 2000/12/28 12:55:41 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*/
@@ -49,18 +49,18 @@ int luaO_equalObj (const TObject *t1, const TObject *t2) {
49 case LUA_TFUNCTION: 49 case LUA_TFUNCTION:
50 return clvalue(t1) == clvalue(t2); 50 return clvalue(t1) == clvalue(t2);
51 default: 51 default:
52 LUA_ASSERT(ttype(t1) == LUA_TNIL, "invalid type"); 52 lua_assert(ttype(t1) == LUA_TNIL);
53 return 1; /* LUA_TNIL */ 53 return 1; /* LUA_TNIL */
54 } 54 }
55} 55}
56 56
57 57
58char *luaO_openspace (lua_State *L, size_t n) { 58char *luaO_openspace (lua_State *L, size_t n) {
59 if (n > L->Mbuffsize) { 59 if (n > G(L)->Mbuffsize) {
60 luaM_reallocvector(L, L->Mbuffer, L->Mbuffsize, n, char); 60 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, n, char);
61 L->Mbuffsize = n; 61 G(L)->Mbuffsize = n;
62 } 62 }
63 return L->Mbuffer; 63 return G(L)->Mbuffer;
64} 64}
65 65
66 66