diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-12 11:36:48 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-06-12 11:36:48 -0300 |
commit | 89c301d180ef4ef3887fbf54fe2fd43a5c8d183a (patch) | |
tree | 6598d32655d3dc34ec27c2c100c5ea13d6a96c86 /lparser.c | |
parent | 186111dc011a37d915c4550c7d716feefd2e7dce (diff) | |
download | lua-89c301d180ef4ef3887fbf54fe2fd43a5c8d183a.tar.gz lua-89c301d180ef4ef3887fbf54fe2fd43a5c8d183a.tar.bz2 lua-89c301d180ef4ef3887fbf54fe2fd43a5c8d183a.zip |
`(exp)' adjusts exp to 1 result
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.147 2001/06/08 19:00:57 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.148 2001/06/11 14:56:42 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -636,6 +636,7 @@ static void primaryexp (LexState *ls, expdesc *v) { | |||
636 | next(ls); | 636 | next(ls); |
637 | expr(ls, v); | 637 | expr(ls, v); |
638 | check(ls, l_c(')')); | 638 | check(ls, l_c(')')); |
639 | luaK_dischargevars(ls->fs, v); | ||
639 | return; | 640 | return; |
640 | } | 641 | } |
641 | case TK_NAME: { | 642 | case TK_NAME: { |