Oh sorry, I misunderstood the question.  The correct answer is that the comparison warning was not at this line.  It was further down at a line that looked like this:

               if (broadcastPacket.size() +  nodeByteArray.size() > dataMTU) {

The two raw return results from QByteArray::size() were int.