summaryrefslogtreecommitdiff
path: root/src/file-manager
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-19 23:34:14 +0100
committerLuke from DC <[email protected]>2022-02-09 04:03:59 +0000
commitb6d46039be75bd2b868ee6c32b091a1e37720a20 (patch)
treefe11a75d22da7ca239204f000c33b2338cc07419 /src/file-manager
parent97b61e663e47e6bd6ee6ff460895a7370b3c6159 (diff)
downloadcaja-b6d46039be75bd2b868ee6c32b091a1e37720a20.tar.bz2
caja-b6d46039be75bd2b868ee6c32b091a1e37720a20.tar.xz
Fix some -Wsign-compare warnings
Diffstat (limited to 'src/file-manager')
-rw-r--r--src/file-manager/fm-directory-view.c4
-rw-r--r--src/file-manager/fm-properties-window.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c
index ddaa334c..c76eefba 100644
--- a/src/file-manager/fm-directory-view.c
+++ b/src/file-manager/fm-directory-view.c
@@ -2351,9 +2351,9 @@ fm_directory_view_display_selection_info (FMDirectoryView *view)
char *size_string;
if (g_settings_get_boolean (caja_preferences, CAJA_PREFERENCES_USE_IEC_UNITS))
- size_string = g_format_size_full (non_folder_size, G_FORMAT_SIZE_IEC_UNITS);
+ size_string = g_format_size_full ((guint64) non_folder_size, G_FORMAT_SIZE_IEC_UNITS);
else
- size_string = g_format_size(non_folder_size);
+ size_string = g_format_size ((guint64) non_folder_size);
/* Translators: This is marked for translation in case a localiser
* needs to use something other than parentheses. The
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c
index 0ab2bfc7..2b38788d 100644
--- a/src/file-manager/fm-properties-window.c
+++ b/src/file-manager/fm-properties-window.c
@@ -4139,7 +4139,7 @@ permission_combo_update (FMPropertiesWindow *window,
int current_perm;
gtk_tree_model_get (model, &iter, 1, &current_perm, -1);
- if (current_perm == all_perm) {
+ if (((PermissionValue) current_perm) == all_perm) {
found = TRUE;
break;
}