Fix signed/unsigned comparison.
This commit is contained in:
parent
add31226ab
commit
fe5e7f3016
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ freefare_get_tags (nfc_device *device)
|
||||||
|
|
||||||
// Poll for a ISO14443A (MIFARE) tag
|
// Poll for a ISO14443A (MIFARE) tag
|
||||||
nfc_target candidates[MAX_CANDIDATES];
|
nfc_target candidates[MAX_CANDIDATES];
|
||||||
size_t candidates_count;
|
int candidates_count;
|
||||||
nfc_modulation modulation = {
|
nfc_modulation modulation = {
|
||||||
.nmt = NMT_ISO14443A,
|
.nmt = NMT_ISO14443A,
|
||||||
.nbr = NBR_106
|
.nbr = NBR_106
|
||||||
|
@ -142,7 +142,7 @@ freefare_get_tags (nfc_device *device)
|
||||||
if(!tags) return NULL;
|
if(!tags) return NULL;
|
||||||
tags[0] = NULL;
|
tags[0] = NULL;
|
||||||
|
|
||||||
for (size_t c = 0; c < candidates_count; c++) {
|
for (int c = 0; c < candidates_count; c++) {
|
||||||
MifareTag t;
|
MifareTag t;
|
||||||
if ((t = freefare_tag_new(device, candidates[c].nti.nai))) {
|
if ((t = freefare_tag_new(device, candidates[c].nti.nai))) {
|
||||||
/* (Re)Allocate memory for the found MIFARE targets array */
|
/* (Re)Allocate memory for the found MIFARE targets array */
|
||||||
|
|
Loading…
Reference in a new issue