aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index 5845e695..dd8bfe08 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.86 2002/08/07 14:35:55 roberto Exp roberto $ 2** $Id: lobject.c,v 1.87 2002/09/02 19:54:49 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*/
@@ -72,9 +72,9 @@ int luaO_rawequalObj (const TObject *t1, const TObject *t2) {
72} 72}
73 73
74 74
75void *luaO_openspaceaux (lua_State *L, size_t n) { 75char *luaO_openspace (lua_State *L, size_t n) {
76 if (n > G(L)->Mbuffsize) { 76 if (n > G(L)->Mbuffsize) {
77 G(L)->Mbuffer = luaM_realloc(L, G(L)->Mbuffer, G(L)->Mbuffsize, n); 77 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, n, char);
78 G(L)->Mbuffsize = n; 78 G(L)->Mbuffsize = n;
79 } 79 }
80 return G(L)->Mbuffer; 80 return G(L)->Mbuffer;