From a76e0041afdb1b0ddaf4d9515f7e3ab25d0cf17c Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 21 Mar 2011 12:41:40 +0000 Subject: [PATCH] drag-action: Fix a compiler warning Use arguments of the right signedness when passing pointers. --- clutter/clutter-drag-action.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-drag-action.c b/clutter/clutter-drag-action.c index 39029644b..99efa2a31 100644 --- a/clutter/clutter-drag-action.c +++ b/clutter/clutter-drag-action.c @@ -815,9 +815,17 @@ clutter_drag_action_get_drag_threshold (ClutterDragAction *action, guint *x_threshold, guint *y_threshold) { + gint x_res, y_res; + g_return_if_fail (CLUTTER_IS_DRAG_ACTION (action)); - get_drag_threshold (action, x_threshold, y_threshold); + get_drag_threshold (action, &x_res, &y_res); + + if (x_threshold != NULL) + *x_threshold = x_res; + + if (y_threshold != NULL) + *y_threshold = y_res; } /**