aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-09-18 00:23:35 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:58 +0100
commitd1f773c4d27ad22e8e6c9551383c36739f1bde0f (patch)
treea93ab3bb132494b68a5390866d4b0caef84f4c7e /src
parent3e0a90cbe88cacffaf8d84e79033934cc29aab73 (diff)
cubeit: Typo
Diffstat (limited to 'src')
-rw-r--r--src/cubeit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeit.c b/src/cubeit.c
index cfa3e8ce..18b20556 100644
--- a/src/cubeit.c
+++ b/src/cubeit.c
@@ -138,8 +138,8 @@ static void interpolate_linear(double *vals, double v,
val1 = v*(1.0-f);
val2 = v*f;
- vals[xs*ys*k + xs*yv + xv] = val1;
- vals[xs*ys*(k+1) + xs*yv + xv] = val2;
+ vals[xs*ys*k + xs*yv + xv] += val1;
+ vals[xs*ys*(k+1) + xs*yv + xv] += val2;
}