Skip to content

Commit

Permalink
rsgain.cpp: use C++ cmath (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored Dec 7, 2024
1 parent 51d43de commit 20eb85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rsgain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <getopt.h>
#include <cmath>
#include <string>
#include <locale>

Expand Down Expand Up @@ -150,7 +150,7 @@ bool parse_max_peak_level(const char *value, double &peak)
{
char *rest = nullptr;
double max_peak = strtod(value, &rest);
if (rest == value || !isfinite(max_peak)) {
if (rest == value || !std::isfinite(max_peak)) {
output_error("Invalid max peak level '{}'", value);
return false;
}
Expand Down

0 comments on commit 20eb85e

Please sign in to comment.