Re: Making FFI callbacks call free() automatically when it's collected

  • From: liam mail <liam.list@xxxxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 20 Jul 2012 13:25:11 +0100

On 20 July 2012 06:34, Robert G. Jakabosky <bobby@xxxxxxxxxxxxxxx> wrote:
>
> I would use a cast to uintptr_t instead of int to support 64bit pointers.
> uintptr_t is guaranteed to be the same size as a pointer.
>
> --
> Robert G. Jakabosky
>

Just for correctness; unless Mike is doing something else under the
hood, uintptr_t is neither guaranteed to be the same size as any
pointer or for an implementation to have it.

Liam

Other related posts: