aboutsummaryrefslogtreecommitdiff
path: root/src/lj_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_state.c')
-rw-r--r--src/lj_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_state.c b/src/lj_state.c
index b4bc7a0c..aa22ac34 100644
--- a/src/lj_state.c
+++ b/src/lj_state.c
@@ -188,7 +188,7 @@ LUA_API lua_State *lua_newstate(lua_Alloc f, void *ud)
188 g->gc.stepmul = LUAI_GCMUL; 188 g->gc.stepmul = LUAI_GCMUL;
189 lj_dispatch_init((GG_State *)L); 189 lj_dispatch_init((GG_State *)L);
190 L->status = LUA_ERRERR+1; /* Avoid touching the stack upon memory error. */ 190 L->status = LUA_ERRERR+1; /* Avoid touching the stack upon memory error. */
191 if (lj_vm_cpcall(L, cpluaopen, NULL, NULL) != 0) { 191 if (lj_vm_cpcall(L, NULL, NULL, cpluaopen) != 0) {
192 /* Memory allocation error: free partial state. */ 192 /* Memory allocation error: free partial state. */
193 close_state(L); 193 close_state(L);
194 return NULL; 194 return NULL;
@@ -222,7 +222,7 @@ LUA_API void lua_close(lua_State *L)
222 L->status = 0; 222 L->status = 0;
223 L->cframe = NULL; 223 L->cframe = NULL;
224 L->base = L->top = L->stack + 1; 224 L->base = L->top = L->stack + 1;
225 } while (lj_vm_cpcall(L, cpfinalize, NULL, NULL) != 0); 225 } while (lj_vm_cpcall(L, NULL, NULL, cpfinalize) != 0);
226 close_state(L); 226 close_state(L);
227} 227}
228 228