lua-users home
lua-l archive

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


> 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