diff options
Diffstat (limited to 'lref.c')
| -rw-r--r-- | lref.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lref.c,v 1.13 2000/06/08 17:48:31 roberto Exp roberto $ | 2 | ** $Id: lref.c,v 1.14 2000/06/12 13:52:05 roberto Exp roberto $ |
| 3 | ** reference mechanism | 3 | ** reference mechanism |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -106,12 +106,12 @@ void luaR_invalidaterefs (lua_State *L) { | |||
| 106 | struct Ref *r = &L->refArray[i]; | 106 | struct Ref *r = &L->refArray[i]; |
| 107 | if (r->st == HOLD && !ismarked(&r->o)) | 107 | if (r->st == HOLD && !ismarked(&r->o)) |
| 108 | r->st = COLLECTED; | 108 | r->st = COLLECTED; |
| 109 | LUA_ASSERT(L, (r->st == LOCK && ismarked(&r->o)) || | 109 | LUA_ASSERT((r->st == LOCK && ismarked(&r->o)) || |
| 110 | r->st == COLLECTED || | 110 | r->st == COLLECTED || |
| 111 | r->st == NONEXT || | 111 | r->st == NONEXT || |
| 112 | (r->st < n && VALIDLINK(L, L->refArray[r->st].st, n)), | 112 | (r->st < n && VALIDLINK(L, L->refArray[r->st].st, n)), |
| 113 | "inconsistent ref table"); | 113 | "inconsistent ref table"); |
| 114 | } | 114 | } |
| 115 | LUA_ASSERT(L, VALIDLINK(L, L->refFree, n), "inconsistent ref table"); | 115 | LUA_ASSERT(VALIDLINK(L, L->refFree, n), "inconsistent ref table"); |
| 116 | } | 116 | } |
| 117 | 117 | ||
