[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Weird embedded literal number/compiler issue
- From: Gavin Wraith <gavin@...>
- Date: Sun, 10 Aug 2008 14:15:24 +0100
In message <16d4c3590808100603u7de5bffkeecaef84d2805398@mail.gmail.com>
you wrote:
> I'm using lua on an embedded ARM device, and everything worked great until I
> added a 3rd party library which didn't work. ....
> The problem seems to be with using literal numbers. If I do:
>
> i = 1
>
> and then log what I is, I get:
Did you mean i?
> = 5.2998088236266e-315
ARMs do not do floating point as a rule, especially not in embedded
devices. What, if anything, is supplying your fp processing,
and what type of LUA_NUM is your lua compiled with?
--
Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/