commit | 96f9643f330a4bf0f8cd1973fecdd7161ffbbf68 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Jul 11 16:11:50 2018 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Jul 11 16:11:50 2018 -0300 |
tree | 78b08f9963feab6863673e42ab98fbc5dad4c792 | |
parent | 84058b15068a382e66f4eeb4e29a2dbf1704fa8b [diff] |
Bug: wrong 'nCcalls' when resuming a coroutine The counter 'nCcalls' now includes the number of CallInfo structures pre-allocated (so that these "potential" C calls can be made without checking 'nCcalls'). So, when copying this value from a thread to another, in 'lua_resume', it must be corrected to the number of CallInfo structures in the thread being resumed.