소스 검색

mistake in change for multi-state (gc threshold was not corrected)

Roberto Ierusalimschy 26 년 전
부모
커밋
2b3ea61342
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lstate.c

+ 2 - 2
lstate.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lstate.c,v 1.16 1999/11/10 15:39:35 roberto Exp roberto $
+** $Id: lstate.c,v 1.17 1999/11/22 13:12:07 roberto Exp roberto $
 ** Global State
 ** See Copyright Notice in lua.h
 */
@@ -51,8 +51,8 @@ lua_State *lua_newstate (void) {
   luaX_init(L);
   luaT_init(L);
   luaB_predefine(L);
-  return L;
   L->GCthreshold = L->nblocks*4;
+  return L;
 }