aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_math.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/d_math.c')
-rw-r--r--pd/src/d_math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pd/src/d_math.c b/pd/src/d_math.c
index 738f2d6c..31c6c655 100644
--- a/pd/src/d_math.c
+++ b/pd/src/d_math.c
@@ -627,7 +627,7 @@ t_int *exp_tilde_perform(t_int *w)
t_sample *out = (t_sample *)(w[2]);
int n = (int)(w[3]);
while (n--)
- *out = exp(*in1);
+ *out++ = exp(*in1++);
return (w+4);
}
@@ -720,7 +720,7 @@ t_int *abs_tilde_perform(t_int *w)
while (n--)
{
float f = *in1++;
- *out = (f >= 0 ? f : -f);
+ *out++ = (f >= 0 ? f : -f);
}
return (w+4);
}