[gnome-photos] gegl-gtk-view-helper: Add explicit casts



commit 4b6090d1deb139567a0883d18391b2304358840c
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Nov 2 14:49:29 2015 +0100

    gegl-gtk-view-helper: Add explicit casts

 src/gegl-gtk-view-helper.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gegl-gtk-view-helper.c b/src/gegl-gtk-view-helper.c
index 6370bc6..895cd0b 100644
--- a/src/gegl-gtk-view-helper.c
+++ b/src/gegl-gtk-view-helper.c
@@ -194,8 +194,8 @@ view_helper_draw(ViewHelper *self, cairo_t *cr, GdkRectangle *rect)
     gint64          end;
     gint64          start;
 
-    roi.x = self->x + rect->x;
-    roi.y = self->y + rect->y;
+    roi.x = (gint) self->x + rect->x;
+    roi.y = (gint) self->y + rect->y;
     roi.width  = rect->width;
     roi.height = rect->height;
 


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