diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.77 2010/04/05 16:35:37 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.78 2010/04/08 17:16:46 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 | */ |
@@ -268,7 +268,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
268 | g->totalbytes = sizeof(LG); | 268 | g->totalbytes = sizeof(LG); |
269 | g->gcpause = LUAI_GCPAUSE; | 269 | g->gcpause = LUAI_GCPAUSE; |
270 | g->gcstepmul = LUAI_GCMUL; | 270 | g->gcstepmul = LUAI_GCMUL; |
271 | for (i=0; i<NUM_TAGS; i++) g->mt[i] = NULL; | 271 | for (i=0; i < LUA_NUMTAGS; i++) g->mt[i] = NULL; |
272 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { | 272 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != LUA_OK) { |
273 | /* memory allocation error: free partial state */ | 273 | /* memory allocation error: free partial state */ |
274 | close_state(L); | 274 | close_state(L); |