mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix: pr #435 (@tisf) OSX has issues with liblua.
This commit is contained in:
parent
53333f22c8
commit
d77e8233c0
1 changed files with 2 additions and 1 deletions
|
@ -107,7 +107,8 @@ static int l_unpack(lua_State *L) /** unpack(f,s, [init]) */
|
||||||
size_t len;
|
size_t len;
|
||||||
const char *s=luaL_checklstring(L,2,&len); /* switched s and f */
|
const char *s=luaL_checklstring(L,2,&len); /* switched s and f */
|
||||||
const char *f=luaL_checkstring(L,1);
|
const char *f=luaL_checkstring(L,1);
|
||||||
int i_read = (int)luaL_optint(L,(3),(1))-1;
|
int i_read = luaL_optinteger(L,3,1)-1;
|
||||||
|
//int i_read = (int)luaL_optint(L,(3),(1))-1;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
if (i_read >= 0) {
|
if (i_read >= 0) {
|
||||||
i = i_read;
|
i = i_read;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue