On Wed, May 13, 2015 at 11:28 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote: >> LuaCrypto fails to build against Lua 5.3. > > For the record, lcrypto.c compiles fine under Lua 5.3 with -DLUA_COMPAT_5_2. > > It also compiles fine under Lua 5.3 without -DLUA_COMPAT_5_2 if you > change this single line in lcrypto.c: > < size_t count = (size_t)luaL_checkint(L, 1); > --- >> size_t count = (size_t)luaL_checkinteger(L, 1); > Thank you for pointing out! The patch works. I have applied this patch to my fork of LuaCrypto [1]. There is also the modified version of rockspec for version 0.3.2 [2], which installs modified LuaCrypto. Finally the Travis build against Lua 5.3 succeeded [3]. Thank you! [1] https://github.com/starius/luacrypto [2] https://gist.githubusercontent.com/starius/b20d3e63929ae678c857/raw/4b4499f442337b6f577422364358590bd00c9d48/luacrypto-0.3.2-2.rockspec [3] https://travis-ci.org/starius/lua-phpass/jobs/62408040 -- Best regards, Boris Nagaev