[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_Integer in Lua 5.3
- From: Coda Highland <chighland@...>
- Date: Mon, 2 Dec 2013 09:54:35 -0800
On Mon, Dec 2, 2013 at 9:46 AM, Lourival Vieira Neto
<lourival.neto@gmail.com> wrote:
> Hi Folks,
>
> Why use 'long long' instead of int64_t for lua_Integer?
>
> The 5.3 manual is still referring ptrdiff_t for lua_Integer, in
> section 4.8 [1]. It should be defined as 'long long' there, right?
>
> [1] http://www.lua.org/work/doc/manual.html#4.8
>
> Regards,
> --
> Lourival Vieira Neto
>
Simple answer: int64_t is C99, Lua tries to stay compatible with C89.
/s/ Adam