aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2013-06-12 23:41:10 +0000
committerDimitri Sokolyuk <demon@dim13.org>2013-06-12 23:41:10 +0000
commit78a6cd1634aec9288b56ee33997d626986ef5aaa (patch)
tree9bac52c77d6fa6e1e0c4aa80268c0792bd86753b
parent49775d3d3413d1e25541b7337148a143364a25e0 (diff)
int casting is enouth
-rw-r--r--spectrogram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 700a65a..ebaee92 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -165,10 +165,10 @@ draw(double *left, double *right, int p, int step)
sp_left.x, sp_left.y);
for (x = 0; x < wf_left.width; x++) {
- l = floor(left[x]);
+ l = left[x];
if (l > p)
l = p;
- r = floor(right[x]);
+ r = right[x];
if (r > p)
r = p;