[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: 64 bit integers
- From: Asko Kauppi <askok@...>
- Date: Mon, 1 Jun 2009 21:52:20 +0300
- apply the patch
- compile with -DLNUM_INT64
You will get a mixed mode double / int64 Lua.
If you only need to store 64-bit values from the C side, have you
considered using light userdata (storing them as pointers). More often
than not, that is enough.
Martin, Marcus kirjoitti 1.6.2009 kello 20:17:
Ah, yes, you are correct. Unfortunately I need the full 64 bit
integer size in Lua. How do I get that?
From: email@example.com [mailto:firstname.lastname@example.org
] On Behalf Of Javier Guerra
Sent: Monday, June 01, 2009 1:07 PM
To: Lua list
Subject: Re: 64 bit integers
On Mon, Jun 1, 2009 at 11:59 AM, Martin, Marcus <email@example.com>
How do I use 64 bit integers in Lua? By default on my system (VS
WinXP) I get 32 bit integers. Do I need to recompile the entire
64 bit support? That would make all integers 64 bit right? Is there
by default you don't get integers, the 'Number' type is a double (64
bit, IIRC). it has enough precision to express 52 bit integers