From: Jouni Malinen Date: Wed, 25 Jan 2012 15:41:59 +0000 (+0200) Subject: pcsc: Fix compiler warning on signed vs. unsigned comparison X-Git-Tag: aosp-jb-start~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e49ccebf7f655aca3b3f887aa43369f9b61bf14;p=thirdparty%2Fhostap.git pcsc: Fix compiler warning on signed vs. unsigned comparison Signed-hostap: Jouni Malinen --- diff --git a/src/utils/pcsc_funcs.c b/src/utils/pcsc_funcs.c index aecc6f7a4..de8b55332 100644 --- a/src/utils/pcsc_funcs.c +++ b/src/utils/pcsc_funcs.c @@ -1059,7 +1059,7 @@ int scard_get_mnc_len(struct scard_data *scard) wpa_printf(MSG_DEBUG, "SCARD: MNC length not available"); return -7; } - if (file_size < 4 || file_size > sizeof(buf)) { + if (file_size < 4 || file_size > (int) sizeof(buf)) { wpa_printf(MSG_DEBUG, "SCARD: invalid file length=%ld", (long) file_size); return -4;