[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: concat for ropes
- From: Ignacio Burgueño <ignaciob@...>
- Date: Fri, 05 Dec 2008 16:37:01 -0200
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)
end
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.
Regards,
Ignacio