[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: checkversion bug?
- From: Peter Cawley <lua@...>
- Date: Sat, 28 May 2016 15:29:25 +0100
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
>