summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index c5921e5..c998930 100644
--- a/util.c
+++ b/util.c
@@ -52,7 +52,7 @@ mix_waves(WaveFrag *frags, LENT len)
LENT max_len = 0;
- Pulse p = 0.0f;
+ Pulse p = 0.0;
for (LENT i = 0; i < len; i++)
max_len = max(max_len, (frags+i)->n);
@@ -61,7 +61,7 @@ mix_waves(WaveFrag *frags, LENT len)
wf.w = MYALLOC(Pulse, max_len);
for (LENT i = 0; i < max_len; i++) {
- p = 0.0f;
+ p = 0.0;
for (LENT j = 0; j < len; j++)
if (i < (frags+j)->n) p += *((frags+j)->w+i);