lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The pointer comparison is deliberate, and is intended to catch
scenarios where you've linked multiple copies of the Lua VM into your
application and are erroneously passing states created with one copy
into a different copy.

On Sat, May 28, 2016 at 3:03 PM, Grey Knight
<tinyplasticgreyknight@yahoo.com> wrote:
> Hello,
>
> I found what looks like a bug in luaL_checkversion_(): it is checking for matching versions by comparing the (lua_Number*) pointers returned from lua_version().
> Presumably it should be comparing the numbers stored at those pointers instead. :-)
>
> --
> GreyKnight
>