From 12d675e4b4b56630fdbb2046beb92587b360ffed Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Sun, 12 Jul 2020 12:40:45 +0400 Subject: [PATCH] =?UTF-8?q?comparison=20of=20integer=20expressions=20of=20?= =?UTF-8?q?different=20signedness:=20=E2=80=98size=5Ft=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/fr-archive.c | 4 ++-- src/core/fr-command-tar.c | 8 ++++---- src/core/gio-utils.c | 2 +- src/core/glib-utils.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/fr-archive.c b/src/core/fr-archive.c index 75f2309..50edc29 100644 --- a/src/core/fr-archive.c +++ b/src/core/fr-archive.c @@ -566,8 +566,8 @@ get_mime_type_from_magic_numbers (GFile *file) { 0, 4, "LRZI", "application/x-lrzip" }, }; - char buffer[32]; - int i; + char buffer[32]; + size_t i; if (! g_load_file_in_buffer (file, buffer, sizeof (buffer), NULL)) return NULL; diff --git a/src/core/fr-command-tar.c b/src/core/fr-command-tar.c index 4a8e64c..9cb1c63 100644 --- a/src/core/fr-command-tar.c +++ b/src/core/fr-command-tar.c @@ -1110,8 +1110,8 @@ fr_command_tar_get_capabilities (FrCommand *comm, capabilities |= FR_COMMAND_CAN_READ_WRITE; } else if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) { - char *try_command[3] = { "7za", "7zr", "7z" }; - int i; + char *try_command[3] = { "7za", "7zr", "7z" }; + size_t i; for (i = 0; i < G_N_ELEMENTS (try_command); i++) { if (is_program_available (try_command[i], check_command)) { @@ -1134,8 +1134,8 @@ fr_command_tar_set_mime_type (FrCommand *comm, FR_COMMAND_CLASS (parent_class)->set_mime_type (comm, mime_type); if (is_mime_type (mime_type, "application/x-7z-compressed-tar")) { - char *try_command[3] = { "7za", "7zr", "7z" }; - int i; + char *try_command[3] = { "7za", "7zr", "7z" }; + size_t i; for (i = 0; i < G_N_ELEMENTS (try_command); i++) { if (is_program_in_path (try_command[i])) { diff --git a/src/core/gio-utils.c b/src/core/gio-utils.c index 756435d..354e0cf 100644 --- a/src/core/gio-utils.c +++ b/src/core/gio-utils.c @@ -522,7 +522,7 @@ get_dir_list_from_file_list (GHashTable *h_dirs, { GList *scan; GList *dir_list = NULL; - int base_dir_len; + size_t base_dir_len; if (base_dir == NULL) base_dir = ""; diff --git a/src/core/glib-utils.c b/src/core/glib-utils.c index a81fee9..5b9eb01 100644 --- a/src/core/glib-utils.c +++ b/src/core/glib-utils.c @@ -744,7 +744,7 @@ _g_path_get_base_name (const char *path, const char *base_dir, gboolean junk_paths) { - int base_dir_len; + size_t base_dir_len; const char *base_path; if (junk_paths)