]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
pcsc: Fix compiler warning on signed vs. unsigned comparison
authorJouni Malinen <j@w1.fi>
Wed, 25 Jan 2012 15:41:59 +0000 (17:41 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 25 Jan 2012 15:41:59 +0000 (17:41 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/utils/pcsc_funcs.c

index aecc6f7a4cf1b77eff35184f31e69e2bad048a08..de8b5533277e6de3de0a88e867d27908c85d95ac 100644 (file)
@@ -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;