From 77543590d9c09ad27b764d3e9e5fb4d04ec0b6ca Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Thu, 26 Aug 2010 14:36:31 +0200 Subject: simutil: Fix compilation with gcc 4.3.2 This gcc version gives two signed / unsigned comparison warnings. --- src/simutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/simutil.c') diff --git a/src/simutil.c b/src/simutil.c index 2d0764cc..ac054ae3 100644 --- a/src/simutil.c +++ b/src/simutil.c @@ -1420,7 +1420,7 @@ gboolean sim_parse_2g_get_response(const unsigned char *response, int len, gboolean sim_ust_is_available(unsigned char *efust, unsigned char len, enum sim_ust_service index) { - if (index >= len * 8) + if (index >= len * 8u) return FALSE; return (efust[index / 8] >> (index % 8)) & 1; @@ -1429,7 +1429,7 @@ gboolean sim_ust_is_available(unsigned char *efust, unsigned char len, gboolean sim_est_is_active(unsigned char *efest, unsigned char len, enum sim_est_service index) { - if (index >= len * 8) + if (index >= len * 8u) return FALSE; return (efest[index / 8] >> (index % 8)) & 1; -- cgit v1.2.3