icera: fix warnings with -Wsign-compare

icera/mm-modem-helpers-icera.c:256:13: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
    256 |         num != expected_cid) {
        |             ^~
This commit is contained in:
Aleksander Morgado
2020-01-31 14:52:49 +01:00
parent 7075e852ca
commit b0f9ddd295
+2 -2
View File
@@ -216,7 +216,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
gboolean success = FALSE;
char **items;
guint num_items, i;
gint num;
guint num;
g_return_val_if_fail (out_ip4_config, FALSE);
g_return_val_if_fail (out_ip6_config, FALSE);
@@ -252,7 +252,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response,
}
/* Validate context ID */
if (!mm_get_int_from_str (items[0], &num) ||
if (!mm_get_uint_from_str (items[0], &num) ||
num != expected_cid) {
g_set_error (error,
MM_CORE_ERROR,