aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-04-16 15:41:44 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-04-16 15:41:44 -0300
commit681297187ec45268e872b26753c441586c12bdd8 (patch)
tree90e62c82146470a4c4931801a36f66de0bc92318 /lstate.h
parent5148954eed7550dcac587fce0214b470442efa0d (diff)
downloadlua-681297187ec45268e872b26753c441586c12bdd8.tar.gz
lua-681297187ec45268e872b26753c441586c12bdd8.tar.bz2
lua-681297187ec45268e872b26753c441586c12bdd8.zip
Bug: yielding in '__close' mess up number of returns
Yielding in a __close metamethod called when returning vararg results changes the top and so messes up the number of returned values.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index c1283bb6..44cf939c 100644
--- a/lstate.h
+++ b/lstate.h
@@ -165,7 +165,7 @@ typedef struct stringtable {
165** - field 'nyield' is used only while a function is "doing" an 165** - field 'nyield' is used only while a function is "doing" an
166** yield (from the yield until the next resume); 166** yield (from the yield until the next resume);
167** - field 'nres' is used only while closing tbc variables when 167** - field 'nres' is used only while closing tbc variables when
168** returning from a C function; 168** returning from a function;
169** - field 'transferinfo' is used only during call/returnhooks, 169** - field 'transferinfo' is used only during call/returnhooks,
170** before the function starts or after it ends. 170** before the function starts or after it ends.
171*/ 171*/