Coverity fix 1325169

This commit is contained in:
Pavel Kirienko 2015-09-30 02:14:46 +03:00
parent ac04e374c6
commit 0410b34d0c

View File

@ -521,6 +521,7 @@ class UAVCAN_EXPORT Array : public ArrayImpl<T, ArrayMode, MaxSize_>
{
return res_sz;
}
// coverity[result_independent_of_operands]
if (static_cast<unsigned>(sz) > MaxSize_) // False 'type-limits' warning occurs here
{
return -ErrInvalidMarshalData;