[gegl] buffer: pad some arrays for CMYK capability in linear sampler
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] buffer: pad some arrays for CMYK capability in linear sampler
- Date: Mon, 26 Nov 2018 21:13:44 +0000 (UTC)
commit 91b75446412dda6589aa6318067f50b6d11543c5
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Nov 26 22:11:39 2018 +0100
buffer: pad some arrays for CMYK capability in linear sampler
gegl/buffer/gegl-sampler-linear.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler-linear.c b/gegl/buffer/gegl-sampler-linear.c
index fa3b46701..cc76f86e3 100644
--- a/gegl/buffer/gegl-sampler-linear.c
+++ b/gegl/buffer/gegl-sampler-linear.c
@@ -147,8 +147,8 @@ gegl_sampler_linear_get ( GeglSampler *self,
/*
* Load bottom row:
*/
- gfloat bot_left[4];
- gfloat bot_rite[4];
+ gfloat bot_left[5];
+ gfloat bot_rite[5];
for (gint c = 0; c < nc; c++)
bot_left[c] = *in_bptr++;
for (gint c = 0; c < nc; c++)
@@ -160,7 +160,7 @@ gegl_sampler_linear_get ( GeglSampler *self,
{
const gfloat w_times_z = (gfloat) 1. - ( x + w_times_y );
- gfloat newval[4];
+ gfloat newval[5];
for (gint c = 0; c < nc; c++)
newval[c] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]