[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Fix Warning 'lua_Unsigned' to 'size_t'
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 16 Jan 2019 10:51:41 -0200
> On Lua 5.3.x there is a warning on the function lua_rawlen
This link is not to Lua 5.3.x.
> warning C4244: 'return': conversion from 'lua_Unsigned' to 'size_t',
> possible loss of data
> I know is harmless warning, but would be nice to add a cast so we could
> have 0 warnings building Lua from source.
What is the compiler? What are the warning options? Are you sure
this is the only warning of this kind? (I think there are several
other instances of conversion from 'lua_Unsigned' or 'lua_Integer'
to 'size_t' in the code...)