1
0
Fork 0
flightgear/3rdparty
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
..
cjson Initial commit for mongoose httpd 2014-03-06 13:19:15 +01:00
cppunit TestSuite: Added the Autotools auto-generated CppUnit config-auto.h file. 2018-03-23 17:26:05 +01:00
flite_hts_engine Render voice to memory, no more temp files. 2014-05-07 20:09:15 +02:00
hidapi Enable HID-input on Windows 2019-04-27 18:54:13 +01:00
hts_engine_API Fix for FreeBSD and a typo 2016-03-12 20:55:46 +01:00
iaxclient VS2015 compatability fixes. 2016-06-01 22:58:03 +01:00
joystick jsWindows: remove undefined behavior when joyGetNumDevs() > INT_MAX 2019-04-29 13:42:32 +02:00
mongoose Revert "Pull in latest mongoose HEAD" 2015-06-12 11:52:10 +02:00
sqlite3 Test helper CMake macro. 2017-03-26 12:15:29 +01:00
CMakeLists.txt Import PLIB JS code into FlightGear 2018-05-03 00:02:09 +01:00