[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: mathx / Lua 5.3
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 5 May 2015 04:22:43 -0300
> Badly, `mathx` uses `luaL_checkint` instead of `luaL_checkinteger`.
> So, `mathx` must compiled with LUA_COMPAT_5_2.
Here is a simple fix, to be applied in lmathx.c:
< #define I(i) luaL_checkint(L,i)
---
> #define I(i) (int) luaL_checkinteger(L,i)
I'll update the code in the site soon.
Thanks for the report.
--lhf