Allocate dynamic size flatbuffers structure on the heap

This commit is contained in:
Alexey Rybalchenko
2016-03-10 11:48:12 +01:00
committed by Mohammad Al-Turany
parent 1ad58653e7
commit bb36147099
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ void FairMQSplitter::Run()
{
std::unique_ptr<FairMQMessage> msg(fTransportFactory->CreateMessage());
if (dataInChannel.Receive(msg) > 0)
if (dataInChannel.Receive(msg) >= 0)
{
dataOutChannels[direction]->Send(msg);
++direction;