[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Weird embedded literal number/compiler issue
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 10 Aug 2008 13:09:44 -0300
> The problem seems to be with using literal numbers. If I do:
> i = 1
> and then log what I is, I get:
> = 5.2998088236266e-315
How do you log what you get?
It seems to me to be an endianness problem. On big endian machines, you get
1 = 3FF0000000000000
5.2998088236266e-315 = 000000003FF00000
(both 8-byte doubles)
Are you using luac on the PC and then transfering the result to the ARM?