[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] phpass password hashing for Lua
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 13 May 2015 10:47:32 -0300
> > 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