[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about Lua 5.1.3 and realloc() on life.lua
- From: Brett Nash <nash@...>
- Date: Sat, 03 May 2008 12:40:32 +1000
On Fri, 2008-05-02 at 12:31 +0300, Bogdan Marinescu wrote:
> Thanks for your advice. I don't need to save the block size, Lua calls
> its allocator function with both the old size and the new size of the
> block. Free bookkeeping for me.
Umm... Isn't that the size that Lua thinks it is? So you need to still
keep the real size of the allocation correct?
Regards,
nash