From fe5e7f301682d76d730e6d8af8d6b52b54752811 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Mon, 14 May 2012 13:57:20 +0000 Subject: [PATCH] Fix signed/unsigned comparison. --- libfreefare/freefare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfreefare/freefare.c b/libfreefare/freefare.c index 3a9bc38..e29a219 100644 --- a/libfreefare/freefare.c +++ b/libfreefare/freefare.c @@ -130,7 +130,7 @@ freefare_get_tags (nfc_device *device) // Poll for a ISO14443A (MIFARE) tag nfc_target candidates[MAX_CANDIDATES]; - size_t candidates_count; + int candidates_count; nfc_modulation modulation = { .nmt = NMT_ISO14443A, .nbr = NBR_106 @@ -142,7 +142,7 @@ freefare_get_tags (nfc_device *device) if(!tags) return NULL; tags[0] = NULL; - for (size_t c = 0; c < candidates_count; c++) { + for (int c = 0; c < candidates_count; c++) { MifareTag t; if ((t = freefare_tag_new(device, candidates[c].nti.nai))) { /* (Re)Allocate memory for the found MIFARE targets array */