aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-01-06 14:23:52 -0500
committerDave Reisner <dreisner@archlinux.org>2014-01-06 14:23:52 -0500
commiteea560d1a5a1a56bfab899696a396206ed226545 (patch)
tree3e02cbb20204aa4d5843bb6564f3b897571a1a37
parent8ba6c69dff50a59190b34c53d5cce338f8debb22 (diff)
downloadmirror-ponymix-eea560d1a5a1a56bfab899696a396206ed226545.tar.gz
mirror-ponymix-eea560d1a5a1a56bfab899696a396206ed226545.tar.bz2
mirror-ponymix-eea560d1a5a1a56bfab899696a396206ed226545.zip
use std::max instead of fmax
-rw-r--r--pulse.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/pulse.cc b/pulse.cc
index 2d0b94f..3f98b19 100644
--- a/pulse.cc
+++ b/pulse.cc
@@ -3,7 +3,6 @@
// C
#include <err.h>
-#include <math.h>
#include <stdio.h>
#include <stdlib.h>
@@ -74,7 +73,7 @@ static void server_info_cb(pa_context* context __attribute__((unused)),
static pa_cvolume* value_to_cvol(long value, pa_cvolume *cvol) {
return pa_cvolume_set(cvol, cvol->channels,
- fmax(static_cast<double>(value + .5) * PA_VOLUME_NORM / 100, 0));
+ std::max((value + .5) * PA_VOLUME_NORM / 100, 0.0));
}
static int volume_as_percent(const pa_cvolume* cvol) {