8e0271d9f6
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. |
||
---|---|---|
.. | ||
cjson | ||
cppunit | ||
flite_hts_engine | ||
hidapi | ||
hts_engine_API | ||
iaxclient | ||
joystick | ||
mongoose | ||
sqlite3 | ||
CMakeLists.txt |