From 427dc18314d4f0558fbcb5f2e5dd52a4e4bd3f34 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sun, 15 Nov 2015 18:05:11 +0300 Subject: [PATCH] src/filemanager/achown.c: fix -Wsign-conversion and -Wshorten-64-to-32 warnings: achown.c:480:10: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] achown.c:687:28: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:689:28: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:691:28: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:693:26: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:695:27: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:712:82: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:718:82: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:730:78: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] achown.c:736:78: warning: implicit conversion changes signedness: 'int' to 'button_flags_t' [-Wsign-conversion] Signed-off-by: Andreas Mohr Signed-off-by: Andrew Borodin --- src/filemanager/achown.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filemanager/achown.c b/src/filemanager/achown.c index 146a172ac..8a6400ff9 100644 --- a/src/filemanager/achown.c +++ b/src/filemanager/achown.c @@ -79,7 +79,9 @@ static struct WDialog *ch_dlg; static struct { unsigned long id; - int ret_cmd, flags, x, len; + int ret_cmd; + button_flags_t flags; + int x, len; const char *text; } chown_advanced_but[BUTTONS] = { @@ -475,7 +477,7 @@ advanced_chown_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm WDialog *h = DIALOG (w); int i; int f_pos; - unsigned int id; + unsigned long id; id = dlg_get_current_widget_id (h);