From 78a6cd1634aec9288b56ee33997d626986ef5aaa Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 12 Jun 2013 23:41:10 +0000 Subject: int casting is enouth --- spectrogram.c | 4 ++-- 1 file 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; -- cgit v1.2.3