diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-05 09:42:47 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-05 09:42:47 -0300 |
| commit | 8a1a512c6484b93e8a4ad81f0bffe818a585c1ee (patch) | |
| tree | fc3caaf321a560818ad1d15ea6fec8b00e708990 /lfunc.c | |
| parent | 6b0c38c2e7da04c6bb1eb670cf45cf430881c9f9 (diff) | |
| download | lua-8a1a512c6484b93e8a4ad81f0bffe818a585c1ee.tar.gz lua-8a1a512c6484b93e8a4ad81f0bffe818a585c1ee.tar.bz2 lua-8a1a512c6484b93e8a4ad81f0bffe818a585c1ee.zip | |
lu_byte is enough for those fields (maxstack < 256)
Diffstat (limited to 'lfunc.c')
| -rw-r--r-- | lfunc.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lfunc.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ | 2 | ** $Id: lfunc.c,v 1.53 2001/12/21 17:31:35 roberto Exp roberto $ |
| 3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -29,7 +29,7 @@ Closure *luaF_newCclosure (lua_State *L, int nelems) { | |||
| 29 | c->c.next = G(L)->rootcl; | 29 | c->c.next = G(L)->rootcl; |
| 30 | G(L)->rootcl = c; | 30 | G(L)->rootcl = c; |
| 31 | c->c.marked = 0; | 31 | c->c.marked = 0; |
| 32 | c->c.nupvalues = cast(short, nelems); | 32 | c->c.nupvalues = cast(lu_byte, nelems); |
| 33 | return c; | 33 | return c; |
| 34 | } | 34 | } |
| 35 | 35 | ||
| @@ -40,7 +40,7 @@ Closure *luaF_newLclosure (lua_State *L, int nelems) { | |||
| 40 | c->c.next = G(L)->rootcl; | 40 | c->c.next = G(L)->rootcl; |
| 41 | G(L)->rootcl = c; | 41 | G(L)->rootcl = c; |
| 42 | c->l.marked = 0; | 42 | c->l.marked = 0; |
| 43 | c->l.nupvalues = cast(short, nelems); | 43 | c->l.nupvalues = cast(lu_byte, nelems); |
| 44 | return c; | 44 | return c; |
| 45 | } | 45 | } |
| 46 | 46 | ||
