diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-05-24 10:54:49 -0300 |
commit | ef62b340e0a6b7b18931000dcbb19c4703bfe0e8 (patch) | |
tree | d9d995116a8a686b798d1b625b06ead26f28ba58 /lref.c | |
parent | 5c2dd7a9e0a5b871a71ba66c4683cd88fe4f5aa4 (diff) | |
download | lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.gz lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.tar.bz2 lua-ef62b340e0a6b7b18931000dcbb19c4703bfe0e8.zip |
code cleaner for 16 bits.
Diffstat (limited to 'lref.c')
-rw-r--r-- | lref.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lref.c,v 1.10 2000/03/27 20:10:21 roberto Exp roberto $ | 2 | ** $Id: lref.c,v 1.11 2000/03/29 20:19:20 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 | */ |
@@ -25,7 +25,8 @@ int lua_ref (lua_State *L, int lock) { | |||
25 | L->refFree = L->refArray[ref].st; | 25 | L->refFree = L->refArray[ref].st; |
26 | } | 26 | } |
27 | else { /* no more free places */ | 27 | else { /* no more free places */ |
28 | luaM_growvector(L, L->refArray, L->refSize, 1, struct Ref, refEM, MAX_INT); | 28 | luaM_growvector(L, L->refArray, L->refSize, 1, struct Ref, |
29 | "reference table overflow", MAX_INT); | ||
29 | ref = L->refSize++; | 30 | ref = L->refSize++; |
30 | } | 31 | } |
31 | L->refArray[ref].o = *(L->top-1); | 32 | L->refArray[ref].o = *(L->top-1); |