summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldo.c3
-rw-r--r--lgc.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index 14cbaacf..9b604a65 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.16 2005/03/08 20:10:05 roberto Exp roberto $ 2** $Id: ldo.c,v 2.17 2005/03/09 16:28:07 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -74,6 +74,7 @@ void luaD_throw (lua_State *L, int errcode) {
74 LUAI_THROW(L, L->errorJmp); 74 LUAI_THROW(L, L->errorJmp);
75 } 75 }
76 else { 76 else {
77 L->status = errcode;
77 if (G(L)->panic) G(L)->panic(L); 78 if (G(L)->panic) G(L)->panic(L);
78 exit(EXIT_FAILURE); 79 exit(EXIT_FAILURE);
79 } 80 }
diff --git a/lgc.c b/lgc.c
index bfcc0c09..04c3b4f1 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.28 2005/03/08 20:10:05 roberto Exp roberto $ 2** $Id: lgc.c,v 2.29 2005/03/09 16:28:07 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -539,7 +539,7 @@ static void atomic (lua_State *L) {
539 propagateall(g); /* remark, to propagate `preserveness' */ 539 propagateall(g); /* remark, to propagate `preserveness' */
540 cleartable(g->weak); /* remove collected objects from weak tables */ 540 cleartable(g->weak); /* remove collected objects from weak tables */
541 /* flip current white */ 541 /* flip current white */
542 g->currentwhite = otherwhite(g); 542 g->currentwhite = cast(lu_byte, otherwhite(g));
543 g->sweepstrgc = 0; 543 g->sweepstrgc = 0;
544 g->sweepgc = &g->rootgc; 544 g->sweepgc = &g->rootgc;
545 g->gcstate = GCSsweepstring; 545 g->gcstate = GCSsweepstring;