1
0
Fork 0
flightgear/3rdparty/joystick
Florent Rougon 8e0271d9f6 jsWindows: remove undefined behavior when joyGetNumDevs() > INT_MAX
If joyGetNumDevs() > INT_MAX, casting it to an 'int' leads to undefined
behavior. On the other hand, after the 'ident >= 0' test succeeded, it
is perfectly safe to use static_cast<unsigned int>(ident), since 'ident'
is of type 'int'. Then we get to compare two unsigned ints, which is
well defined.
2019-04-29 13:42:32 +02:00
..
CMakeLists.txt Hopefully fix FreeBSD joystick support 2018-05-21 17:17:42 +02:00
js.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
js.h Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsBSD.cxx jsSetError() takes only two arguments (unlike ulSetError()) 2018-06-12 12:10:00 +02:00
jsLinux.cxx PLIB joystick: don't nuke kernel-level deadband settings on Linux 2018-05-03 21:51:36 +02:00
jsMacOSX.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsNone.cxx Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00
jsWindows.cxx jsWindows: remove undefined behavior when joyGetNumDevs() > INT_MAX 2019-04-29 13:42:32 +02:00