lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Luiz Henrique de Figueiredo wrote:

Sorry, I messed up the stack counts and also forgot a couple of lua_pop...
Here is the corrected version.
Thanks for spotting this.

Hi. It's working better now, but it fails when producing longer strings. For instance, this also asserts:

require "rope"
t = {}
for i=1,130000 do
	table.insert(t, i)
print(unrope(t, ""))

Shouldn't luaL_addvalue check the stack before pushing the new value when the buffer fills? The call to emptybuffer may push a string, also.