diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-08-26 14:36:31 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-08-26 18:44:50 -0500 |
commit | 77543590d9c09ad27b764d3e9e5fb4d04ec0b6ca (patch) | |
tree | 77d02f594f7c9f5015873bbc8b7d885903971f09 /src/simutil.c | |
parent | d3eb346b400d37920189d443d07dce9c3f4c0ccf (diff) | |
download | ofono-77543590d9c09ad27b764d3e9e5fb4d04ec0b6ca.tar.bz2 |
simutil: Fix compilation with gcc 4.3.2
This gcc version gives two signed / unsigned comparison warnings.
Diffstat (limited to 'src/simutil.c')
-rw-r--r-- | src/simutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |