fix: Fedora 42 build (#1126)

Fixes build error here: https://koji.fedoraproject.org/koji/taskinfo?taskID=127932100
F42 is coming, and probably there are some C++ standard library changes.
You can find the full F42 changelist here: https://fedoraproject.org/wiki/Releases/42/ChangeSet#GNU_Toolchain_Update_(gcc_15,_binutils_2.44,_glibc_2.41,_gdb_15+)
This commit is contained in:
Gergely Gombos
2025-01-28 16:11:36 +01:00
committed by GitHub
parent 7939b51173
commit 55c89ccc26

View File

@@ -185,7 +185,7 @@ JoySensorDirection JoyAccelerometerSensor::calculateSensorDirection()
bool inPitch = pitch_abs < m_dead_zone;
bool inRoll = roll_abs < range;
if (isnan(roll))
if (std::isnan(roll))
{
return SENSOR_CENTERED;
}