Add more parenthesis to shut the compiler down.

This commit is contained in:
Romain Tartiere 2010-10-17 16:08:16 +00:00
parent 688d083f63
commit 6790ad9bac

View file

@ -53,8 +53,8 @@ freefare_tag_new (nfc_device_t *device, nfc_iso14443a_info_t nai)
for (size_t i = 0; i < sizeof (supported_tags) / sizeof (struct supported_tag); i++) {
if (((nai.szUidLen == 4) || (nai.abtUid[0] == NXP_MANUFACTURER_CODE)) &&
(nai.btSak == supported_tags[i].SAK) &&
(!supported_tags[i].ATS_length || (nai.szAtsLen == supported_tags[i].ATS_length) &&
(0 == memcmp (nai.abtAts, supported_tags[i].ATS, ATS_LENGTH)))) {
(!supported_tags[i].ATS_length || ((nai.szAtsLen == supported_tags[i].ATS_length) &&
(0 == memcmp (nai.abtAts, supported_tags[i].ATS, ATS_LENGTH))))) {
tag_info = &(supported_tags[i]);
found = true;