[gimp] app: add a cast when comparing GdkCursorType with GimpCursorType



commit 42b2498a0610914a7c77bde91739ef42eedbb821
Author: Michael Natterer <mitch gimp org>
Date:   Thu Mar 17 14:42:44 2011 +0100

    app: add a cast when comparing GdkCursorType with GimpCursorType

 app/widgets/gimpcursor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/widgets/gimpcursor.c b/app/widgets/gimpcursor.c
index e2170b1..21118b1 100644
--- a/app/widgets/gimpcursor.c
+++ b/app/widgets/gimpcursor.c
@@ -261,7 +261,7 @@ gimp_cursor_new (GdkDisplay         *display,
   g_return_val_if_fail (GDK_IS_DISPLAY (display), NULL);
   g_return_val_if_fail (cursor_type < GIMP_CURSOR_LAST, NULL);
 
-  if (cursor_type <= GDK_LAST_CURSOR)
+  if (cursor_type <= (GimpCursorType) GDK_LAST_CURSOR)
     return gdk_cursor_new_for_display (display, cursor_type);
 
   g_return_val_if_fail (cursor_type >= GIMP_CURSOR_NONE, NULL);



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