mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-18 03:00:58 +08:00
warnings on ubuntu
This commit is contained in:
parent
ef136096a3
commit
d5153b2446
1 changed files with 3 additions and 3 deletions
|
@ -150,8 +150,8 @@ static int returnToLuaWithError(lua_State *L, const char* fmt, ...) {
|
|||
|
||||
static int l_mfDarkside(lua_State *L){
|
||||
|
||||
uint8_t blockno = 0;
|
||||
uint8_t keytype = 0;
|
||||
uint32_t blockno = 0;
|
||||
uint32_t keytype = 0;
|
||||
uint64_t key = 0;
|
||||
size_t size;
|
||||
|
||||
|
@ -172,7 +172,7 @@ static int l_mfDarkside(lua_State *L){
|
|||
default : break;
|
||||
}
|
||||
|
||||
int retval = mfDarkside(blockno, keytype, &key);
|
||||
int retval = mfDarkside(blockno & 0xFF, keytype & 0xFF, &key);
|
||||
|
||||
//Push the retval on the stack
|
||||
lua_pushinteger(L,retval);
|
||||
|
|
Loading…
Reference in a new issue