[gegl] gegl-sampler-cubic.c: bye bye C90 warning
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-sampler-cubic.c: bye bye C90 warning
- Date: Wed, 21 Nov 2012 21:40:04 +0000 (UTC)
commit 85b796367bb216ed087a82c1818f80e94e5f0f59
Author: Nicolas Robidoux <nrobidoux git gnome org>
Date: Wed Nov 21 16:31:40 2012 -0500
gegl-sampler-cubic.c: bye bye C90 warning
gegl/buffer/gegl-sampler-cubic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-cubic.c b/gegl/buffer/gegl-sampler-cubic.c
index 270644f..54ca3e6 100644
--- a/gegl/buffer/gegl-sampler-cubic.c
+++ b/gegl/buffer/gegl-sampler-cubic.c
@@ -169,8 +169,6 @@ gegl_sampler_cubic_get ( GeglSampler *self,
const gint ix = GEGL_FAST_PSEUDO_FLOOR (iabsolute_x);
const gint iy = GEGL_FAST_PSEUDO_FLOOR (iabsolute_y);
- sampler_bptr = gegl_sampler_get_ptr (self, ix, iy, repeat_mode);
-
/*
* x is the x-coordinate of the sampling point relative to the
* position of the center of the top left pixel. Similarly for
@@ -179,6 +177,8 @@ gegl_sampler_cubic_get ( GeglSampler *self,
const gfloat x = iabsolute_x - ix;
const gfloat y = iabsolute_y - iy;
+ sampler_bptr = gegl_sampler_get_ptr (self, ix, iy, repeat_mode);
+
for (j=-1; j<3; j++)
for (i=-1; i<3; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]