Quiet Clang warning about signed/unsigned comparison

llvm-svn: 204360
This commit is contained in:
Ed Maste 2014-03-20 17:34:26 +00:00
parent e1c34bf380
commit d494b29596
1 changed files with 1 additions and 1 deletions

View File

@ -956,7 +956,7 @@ GDBRemoteCommunicationServer::Handle_qLaunchGDBServer (StringExtractorGDBRemote
{ {
char response[256]; char response[256];
const int response_len = ::snprintf (response, sizeof(response), "pid:%" PRIu64 ";port:%u;", debugserver_pid, port + m_port_offset); const int response_len = ::snprintf (response, sizeof(response), "pid:%" PRIu64 ";port:%u;", debugserver_pid, port + m_port_offset);
assert (response_len < sizeof(response)); assert (response_len < (int)sizeof(response));
PacketResult packet_result = SendPacketNoLock (response, response_len); PacketResult packet_result = SendPacketNoLock (response, response_len);
if (packet_result != PacketResult::Success) if (packet_result != PacketResult::Success)