projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: this timing should be quite good. needs to be verified.
[proxmark3-svn]
/
client
/
pm3_binlib.c
diff --git
a/client/pm3_binlib.c
b/client/pm3_binlib.c
index 5c1e3cfcb94178563ca6ff5c3d3eb55cc81b0238..88cb289f39d09b3f658b2e3fd4a6ceb5c5143c2e 100644
(file)
--- a/
client/pm3_binlib.c
+++ b/
client/pm3_binlib.c
@@
-107,7
+107,7
@@
static int l_unpack(lua_State *L) /** unpack(f,s, [init]) */
size_t len;
const char *s=luaL_checklstring(L,2,&len); /* switched s and f */
const char *f=luaL_checkstring(L,1);
size_t len;
const char *s=luaL_checklstring(L,2,&len); /* switched s and f */
const char *f=luaL_checkstring(L,1);
- int i_read =
luaL_optint(L,3,1
)-1;
+ int i_read =
(int)luaL_optint(L,(3),(1)
)-1;
unsigned int i;
if (i_read >= 0) {
i = i_read;
unsigned int i;
if (i_read >= 0) {
i = i_read;
Impressum
,
Datenschutz