Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use std::max instead of fmax

  • Loading branch information...
commit eea560d1a5a1a56bfab899696a396206ed226545 1 parent 8ba6c69
@falconindy authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  pulse.cc
View
3  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) {
Please sign in to comment.
Something went wrong with that request. Please try again.