[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Weird embedded literal number/compiler issue
- From: Gavin Wraith <gavin@...>
- Date: Sun, 10 Aug 2008 14:15:24 +0100
In message <firstname.lastname@example.org>
> 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 (email@example.com)
Home page: http://www.wra1th.plus.com/