modem-helpers-qmi: fix warnings with -Wsign-compare

mm-modem-helpers-qmi.c: In function ‘mm_qmi_unique_id_to_firmware_unique_id’:
  mm-modem-helpers-qmi.c:1653:19: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
   1653 |     for (i = 0; i < qmi_unique_id->len; i++) {
        |                   ^
  mm-modem-helpers-qmi.c:1679:11: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’} [-Werror=sign-compare]
   1679 |     if (i != qmi_unique_id->len)
        |           ^~
This commit is contained in:
Aleksander Morgado
2020-01-31 14:52:49 +01:00
parent 7c900c51b5
commit 9bd54e76fc
+1 -1
View File
@@ -1655,7 +1655,7 @@ gchar *
mm_qmi_unique_id_to_firmware_unique_id (GArray *qmi_unique_id,
GError **error)
{
gint i;
guint i;
gboolean expect_nul_byte = FALSE;
if (qmi_unique_id->len != EXPECTED_QMI_UNIQUE_ID_LENGTH) {