[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using float data type throughout Lua 4.0 source
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 12 Mar 2002 08:45:08 -0300
> 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