Skip to content

Commit 55c89cc

Browse files
authored
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+)
1 parent 7939b51 commit 55c89cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joyaccelerometersensor.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ JoySensorDirection JoyAccelerometerSensor::calculateSensorDirection()
185185
bool inPitch = pitch_abs < m_dead_zone;
186186
bool inRoll = roll_abs < range;
187187

188-
if (isnan(roll))
188+
if (std::isnan(roll))
189189
{
190190
return SENSOR_CENTERED;
191191
}

0 commit comments

Comments
 (0)