mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 04:43:34 +08:00
Coverity scan code annotations and modeling file
This commit is contained in:
@@ -360,6 +360,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl<T, ArrayMode, MaxSize_>
|
||||
#if UAVCAN_CPP_VERSION >= UAVCAN_CPP11
|
||||
const bool nan = std::isnan(*it);
|
||||
#else
|
||||
// coverity[same_on_both_sides : FALSE]
|
||||
const bool nan = (*it) != (*it);
|
||||
#endif
|
||||
if (!nan)
|
||||
|
||||
Reference in New Issue
Block a user