commit | 6e285e539274920830eeec5cd2dde5eeca5863e4 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Oct 23 10:31:02 2019 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Wed Oct 23 10:31:02 2019 -0300 |
tree | 1d2a19d8f576441f647950aa3352dd1c1c77f02a | |
parent | b8cdea01908f8d436e9d5a73d640645ea52d5f65 [diff] |
More pious implementation of 'string.dump' In 'str__dump', the call to 'lua_dump' assumes the function is on the top of the stack, but the manual allows 'luaL_buffinit' to push stuff on the stack (although the current implementation does not). So, the call to 'luaL_buffinit' must come after the call to 'lua_dump'.