[gegl] (harmless) wrong cast



commit 0466dc2dbd737d86e1b05327d1680f3841109ab5
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date:   Thu Nov 22 00:37:19 2012 -0500

    (harmless) wrong cast

 gegl/buffer/gegl-sampler-nearest.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-nearest.c b/gegl/buffer/gegl-sampler-nearest.c
index 64fa0f7..648ccf7 100644
--- a/gegl/buffer/gegl-sampler-nearest.c
+++ b/gegl/buffer/gegl-sampler-nearest.c
@@ -72,8 +72,8 @@ gegl_sampler_nearest_get (GeglSampler     *self,
   gfloat *sampler_bptr;
 
   sampler_bptr = gegl_sampler_get_from_buffer (self,
-                                               (gdouble) floor ((double) x),
-                                               (gdouble) floor ((double) y),
+                                               (gint) floor ((double) x),
+                                               (gint) floor ((double) y),
                                                repeat_mode);
   babl_process (self->fish, sampler_bptr, output, 1);
 }



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