lua-users home
lua-l archive

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


> > 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);

Note that this change is backward compatible with Lua 5.2 and Lua
5.1. (And it can be slightly better than the original in those versions,
when 'size_t' is larger than 'int'...)

-- Roberto