From 97c972223663564110702b23c0964d697bc903b4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 23 Jun 2015 14:27:01 +0200 Subject: silence clang int/float/double -Wabsolute-value --- libs/plugins/reasonablesynth.lv2/rsynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/plugins/reasonablesynth.lv2/rsynth.c b/libs/plugins/reasonablesynth.lv2/rsynth.c index 665ae13877..5848bee14c 100644 --- a/libs/plugins/reasonablesynth.lv2/rsynth.c +++ b/libs/plugins/reasonablesynth.lv2/rsynth.c @@ -229,7 +229,7 @@ static void process_key (void *synth, RSSynthChannel* sc = &rs->sc[chn]; const int8_t vel = sc->miditable[note]; const int8_t msg = sc->midimsgs[note]; - const float vol = /* master_volume */ 0.1 * fabsf(vel) / 127.0; + const float vol = /* master_volume */ 0.1f * abs(vel) / 127.f; const float phase = sc->phase[note]; const int8_t sus = sc->sustain; sc->midimsgs[note] &= ~3; -- cgit v1.2.3