aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lgc.c b/lgc.c
index d41b6d51..418ccd6c 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,10 +1,9 @@
1/* 1/*
2** $Id: lgc.c,v 1.115 2001/10/31 19:58:11 roberto Exp $ 2** $Id: lgc.c,v 1.116 2001/11/06 21:41:53 roberto Exp $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
6 6
7#define LUA_PRIVATE
8#include "lua.h" 7#include "lua.h"
9 8
10#include "ldebug.h" 9#include "ldebug.h"
@@ -352,7 +351,7 @@ static void collectstrings (lua_State *L, int all) {
352static void checkMbuffer (lua_State *L) { 351static void checkMbuffer (lua_State *L) {
353 if (G(L)->Mbuffsize > MINBUFFER*2) { /* is buffer too big? */ 352 if (G(L)->Mbuffsize > MINBUFFER*2) { /* is buffer too big? */
354 size_t newsize = G(L)->Mbuffsize/2; /* still larger than MINBUFFER */ 353 size_t newsize = G(L)->Mbuffsize/2; /* still larger than MINBUFFER */
355 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, newsize, l_char); 354 luaM_reallocvector(L, G(L)->Mbuffer, G(L)->Mbuffsize, newsize, char);
356 G(L)->Mbuffsize = newsize; 355 G(L)->Mbuffsize = newsize;
357 } 356 }
358} 357}