Skip to content

Commit 20eb85e

Browse files
authored
rsgain.cpp: use C++ cmath (#140)
1 parent 51d43de commit 20eb85e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rsgain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
#include <stdio.h>
3434
#include <stdlib.h>
3535
#include <string.h>
36-
#include <math.h>
3736
#include <getopt.h>
37+
#include <cmath>
3838
#include <string>
3939
#include <locale>
4040

@@ -150,7 +150,7 @@ bool parse_max_peak_level(const char *value, double &peak)
150150
{
151151
char *rest = nullptr;
152152
double max_peak = strtod(value, &rest);
153-
if (rest == value || !isfinite(max_peak)) {
153+
if (rest == value || !std::isfinite(max_peak)) {
154154
output_error("Invalid max peak level '{}'", value);
155155
return false;
156156
}

0 commit comments

Comments
 (0)