[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Using float data type throughout Lua 4.0 source
- From: "Martin Stone" <Martin.Stone@...>
- Date: Tue, 12 Mar 2002 13:40:35 -0000
That's great. Thanks for your help.
Martin.
-----Original Message-----
From: Roberto Ierusalimschy [mailto:roberto@inf.puc-rio.br]
Sent: 12 March 2002 11:45
To: Multiple recipients of list
Subject: Re: Using float data type throughout Lua 4.0 source
> C:\Projects\Tech\Script\Source\Lua40\src\ltable.c(149) : warning C4244: 'function' : conversion from 'int ' to 'float ', possible loss of data
> C:\Projects\Tech\Script\Source\Lua40\src\ltable.c(155) : warning C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
> C:\Projects\Tech\Script\Source\Lua40\src\ltable.c(285) : warning C4244: '=' : conversion from 'int ' to 'float ', possible loss of data
Of those above, you may have problems only if you index a table with
integer indices that do not fit in a float (that is, > 2^24) (from C),
or if you have tables with more than 2^24 elements (16,777,216).
> C:\Projects\Tech\Script\Source\Lua40\src\lvm.c(328) : warning C4244: 'function' : conversion from 'int ' to 'float ', possible loss of data
No problem at all.
-- Roberto