Re: [ANN] s2n LuaJIT binding

  • From: Mike Pall <mike-1507@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Fri, 3 Jul 2015 01:09:12 +0200

William Adams wrote:

The only interesting bit is the usage of ssize_t, which I defined as
int64_t, which may or may not be correct depending.

ssize_t is a POSIX thing and not in C89 or C99. Defining it as an
int64_t is wrong for 32 bit platforms. A better workaround is:

typedef intptr_t ssize_t;

That works on all platforms that LuaJIT supports or is likely to
ever support.

--Mike

Other related posts: