Coverity CID 1268180

This commit is contained in:
Pavel Kirienko
2015-02-05 02:41:46 +03:00
parent 315d21c256
commit 3a0aa4ce46
@@ -479,6 +479,7 @@ inline bool getSignBit(T arg)
#if UAVCAN_CPP_VERSION >= UAVCAN_CPP11
return std::signbit(arg);
#else
// coverity[divide_by_zero : FALSE]
return arg < T(0) || (((arg <= T(0)) && (arg >= T(0))) && (T(1) / arg < T(0)));
#endif
}