Use std::isfinite from the cmath header
This commit is contained in:
parent
a3b644374b
commit
dc622b3182
@ -3812,7 +3812,7 @@ ALC_API ALCcontext* ALC_APIENTRY alcCreateContext(ALCdevice *device, const ALCin
|
|||||||
|
|
||||||
if(ConfigValueFloat(device->DeviceName, nullptr, "volume-adjust", &valf))
|
if(ConfigValueFloat(device->DeviceName, nullptr, "volume-adjust", &valf))
|
||||||
{
|
{
|
||||||
if(!isfinite(valf))
|
if(!std::isfinite(valf))
|
||||||
ERR("volume-adjust must be finite: %f\n", valf);
|
ERR("volume-adjust must be finite: %f\n", valf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user