[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: and/or missbehaviour in embedded lua 5.1
- From: "D Burgess" <dburgess@...>
- Date: Wed, 15 Mar 2006 23:25:57 +1100
So LUA_NUMBER is double?
I have not checked the core code but I thought there was
minimal change here from 5.0.2.
DB
On 3/15/06, Andreas Stenius <kaos@explosive.se> wrote:
> D Burgess skrev:
> > luaconf.h you most certainly need to tailor the macro named
> >
> > lua_number2int
> >
> > If you have lrint() use it.
> >
> >
> > while you are at it, check on.
> >
> > lua_str2number(s,p)
> >
> > DB
> >
> >
>
> Thanks, I've looked at it. But I can't see how this can be from a bad
> setup in luaconf.
> Since the and/or construct works when used with variable lookups, example:
>
> > =false or 1
> 1.0890312344636e-60
> > i = 1
> > =i
> 1
> > =false or i
> 1
> >
>
> //Andreas
>
>