Fix -Wsign-compare warning

This commit is contained in:
Alexey Rybalchenko 2018-11-28 11:37:56 +01:00 committed by Dennis Klein
parent 489bea5a51
commit 33f5590626

View File

@ -286,7 +286,7 @@ int64_t FairMQSocketSHM::Send(vector<FairMQMessagePtr>& msgVec, const int timeou
}
else if (nbytes > 0)
{
assert(nbytes == (vecSize * sizeof(MetaHeader))); // all or nothing
assert(static_cast<unsigned int>(nbytes) == (vecSize * sizeof(MetaHeader))); // all or nothing
for (auto& msg : msgVec)
{