diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 979f45f66b..74370c6949 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1487,7 +1487,7 @@ compare_marks (gpointer a, gpointer b) ma = a; mb = b; - return (gint) (ma->value - mb->value); + return (ma->value > mb->value) ? 1 : ((ma->value == mb->value) ? 0 : -1); } /**