[planner: 18/32] Fix some signedness warnings




commit da72059868e83252bb862fbb41610fc2464e371d
Author: Mart Raudsepp <leio gentoo org>
Date:   Mon May 31 13:12:32 2021 +0300

    Fix some signedness warnings

 src/planner-project-properties.c | 2 +-
 src/planner-task-date-widget.c   | 2 +-
 src/planner-window.c             | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/planner-project-properties.c b/src/planner-project-properties.c
index 36ae5d09..a4a4952e 100644
--- a/src/planner-project-properties.c
+++ b/src/planner-project-properties.c
@@ -651,7 +651,7 @@ mpp_start_save_date (GtkWidget *dialog)
 {
        DialogData *data;
        mrptime     start;
-       gint        year, month, day;
+       guint        year, month, day;
 
        data = DIALOG_GET_DATA (dialog);
 
diff --git a/src/planner-task-date-widget.c b/src/planner-task-date-widget.c
index 89f8a744..f6325fa2 100644
--- a/src/planner-task-date-widget.c
+++ b/src/planner-task-date-widget.c
@@ -230,7 +230,7 @@ mrptime
 planner_task_date_widget_get_date (PlannerTaskDateWidget *widget)
 {
        PlannerTaskDateWidgetPrivate *priv;
-       gint                       year, month, day;
+       guint                         year, month, day;
 
        priv = planner_task_date_widget_get_instance_private (widget);
 
diff --git a/src/planner-window.c b/src/planner-window.c
index 3def8208..cf23b406 100644
--- a/src/planner-window.c
+++ b/src/planner-window.c
@@ -1216,7 +1216,7 @@ window_drag_data_received_cb (GtkWidget        *widget,
                return;
        }
 
-       uris = g_uri_list_extract_uris (gtk_selection_data_get_data (data));
+       uris = g_uri_list_extract_uris ((const gchar *)gtk_selection_data_get_data (data));
 
        i = 0;
        while (uris[i]) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]