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 /lcode.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 'lcode.c')
-rw-r--r-- | lcode.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $ | 2 | ** $Id: lcode.c,v 1.89 2002/02/05 22:39:12 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -176,7 +176,7 @@ void luaK_reserveregs (FuncState *fs, int n) { | |||
176 | if (fs->freereg > fs->f->maxstacksize) { | 176 | if (fs->freereg > fs->f->maxstacksize) { |
177 | if (fs->freereg >= MAXSTACK) | 177 | if (fs->freereg >= MAXSTACK) |
178 | luaK_error(fs->ls, "function or expression too complex"); | 178 | luaK_error(fs->ls, "function or expression too complex"); |
179 | fs->f->maxstacksize = cast(short, fs->freereg); | 179 | fs->f->maxstacksize = cast(lu_byte, fs->freereg); |
180 | } | 180 | } |
181 | } | 181 | } |
182 | 182 | ||