[gegl] gblur-1d: remove need for an initialize to zero loop
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gblur-1d: remove need for an initialize to zero loop
- Date: Tue, 30 Oct 2018 20:56:56 +0000 (UTC)
commit 4a73661ec722687a2c2c7033e078d7f426841a9f
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Oct 30 21:56:27 2018 +0100
gblur-1d: remove need for an initialize to zero loop
operations/common/gblur-1d.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/gblur-1d.c b/operations/common/gblur-1d.c
index 31fa8dcdf..9ffc5c39f 100644
--- a/operations/common/gblur-1d.c
+++ b/operations/common/gblur-1d.c
@@ -343,9 +343,9 @@ fix_right_boundary_generic (gdouble *buf,
{
gdouble tmp[nc];
for (c = 0; c < nc ; c++)
- tmp[c] = 0.0;
+ tmp[c] = m[i][0] * u[0 * nc + c];
- for (k = 0; k < 3; k++)
+ for (k = 1; k < 3; k++)
{
for (c = 0; c < nc ; c++)
tmp[c] += m[i][k] * u[k * nc + c];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]