[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: type mismatches...
- From: Adam Wozniak <adam@...>
- Date: Wed, 14 Jul 1999 22:07:49 -0700
> From email@example.com Wed Jul 14 18:38:42 1999
> >From firstname.lastname@example.org Wed Jul 14 21:00:36 1999
> >From: Adam Wozniak <email@example.com>
> >void lua_pushnumber (double n)
> >should probably be
> >void lua_pushnumber (real n)
> No. The idea is that Lua's API uses only primitive types (except for lua_Object,
> which is opaque).
Even if you define LUA_NUM_TYPE to be 'long'?
Leaving it as 'double' forces a number of unnecessary long->double->long
conversions. The whole point of using 'long' is to get away from floating
point operations on an embedded processor which has no floating point unit.