diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 13:29:02 +0100 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2019-10-10 18:22:41 +0100 |
commit | 67ef2a52c3cdcc37538d77711bbcea2f0e5655e5 (patch) | |
tree | 8d25bcb2c10cba8945ae4638695d879e88b9d259 /src/profiling/SocketProfilingConnection.cpp | |
parent | 8efc500a7465c03877db8bbe443134f2b1bbc1af (diff) | |
download | armnn-67ef2a52c3cdcc37538d77711bbcea2f0e5655e5.tar.gz |
IVGCVSW-3964 Change the type held by the Packet class to unsigned char
* Updated the Packet class
* Updated the pertinent code accordingly
Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Change-Id: I73eab5b1ead67a610cd17fd33f8a74f764ad8cc4
Diffstat (limited to 'src/profiling/SocketProfilingConnection.cpp')
-rw-r--r-- | src/profiling/SocketProfilingConnection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profiling/SocketProfilingConnection.cpp b/src/profiling/SocketProfilingConnection.cpp index 0ae7b0e1fe..ad629928f9 100644 --- a/src/profiling/SocketProfilingConnection.cpp +++ b/src/profiling/SocketProfilingConnection.cpp @@ -119,10 +119,10 @@ Packet SocketProfilingConnection::ReadPacket(uint32_t timeout) uint32_t dataLength = 0; std::memcpy(&dataLength, header + 4u, sizeof(dataLength)); - std::unique_ptr<char[]> packetData; + std::unique_ptr<unsigned char[]> packetData; if (dataLength > 0) { - packetData = std::make_unique<char[]>(dataLength); + packetData = std::make_unique<unsigned char[]>(dataLength); } ssize_t receivedLength = recv(m_Socket[0].fd, packetData.get(), dataLength, 0); |