From b2983ba0257feafef87c490a5cf656fe6bb13bbe Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 1 May 2025 08:35:41 +0200 Subject: [PATCH] convertion between size and int might cause type convertion confusing --- client/src/cmdhfmf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhfmf.c b/client/src/cmdhfmf.c index 74899cd38..70dc058f8 100644 --- a/client/src/cmdhfmf.c +++ b/client/src/cmdhfmf.c @@ -5186,7 +5186,7 @@ static int CmdHF14AMfEKeyPrn(const char *Cmd) { memcpy(uid, data, sizeof(uid)); // download keys from EMUL - for (int i = 0; i < sectors_cnt; i++) { + for (uint8_t i = 0; i < sectors_cnt; i++) { if (mf_eml_get_mem(data, mfFirstBlockOfSector(i) + mfNumBlocksPerSector(i) - 1, 1) != PM3_SUCCESS) { PrintAndLogEx(WARNING, "error get block %d", mfFirstBlockOfSector(i) + mfNumBlocksPerSector(i) - 1);