diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
commit | c6b442bd369ce05b3d4bfb95ba64451521aa1b31 (patch) | |
tree | f46b96d8142564c05ad89400bb203510b71cb2b2 /lstate.c | |
parent | 4f88418170d298b065a7f71d86b1127153919ae9 (diff) | |
download | lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.gz lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.bz2 lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.zip |
'luaM_freearray' does not need array type as argument
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.50 2009/03/10 17:14:37 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.51 2009/04/17 14:28:06 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -93,7 +93,7 @@ static void freestack (lua_State *L) { | |||
93 | L->ci = &L->base_ci; /* reset 'ci' list */ | 93 | L->ci = &L->base_ci; /* reset 'ci' list */ |
94 | luaE_freeCI(L); | 94 | luaE_freeCI(L); |
95 | lua_assert(L->nci == 0); | 95 | lua_assert(L->nci == 0); |
96 | luaM_freearray(L, L->stack, L->stacksize, TValue); | 96 | luaM_freearray(L, L->stack, L->stacksize); |
97 | } | 97 | } |
98 | 98 | ||
99 | 99 | ||
@@ -140,7 +140,7 @@ static void close_state (lua_State *L) { | |||
140 | global_State *g = G(L); | 140 | global_State *g = G(L); |
141 | luaF_close(L, L->stack); /* close all upvalues for this thread */ | 141 | luaF_close(L, L->stack); /* close all upvalues for this thread */ |
142 | luaC_freeall(L); /* collect all objects */ | 142 | luaC_freeall(L); /* collect all objects */ |
143 | luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size, TString *); | 143 | luaM_freearray(L, G(L)->strt.hash, G(L)->strt.size); |
144 | luaZ_freebuffer(L, &g->buff); | 144 | luaZ_freebuffer(L, &g->buff); |
145 | freestack(L); | 145 | freestack(L); |
146 | lua_assert(g->totalbytes == sizeof(LG)); | 146 | lua_assert(g->totalbytes == sizeof(LG)); |