Fix a type mismatch error in GDBRemoteCommunicationServerCommon
authorPavel Labath <pavel@labath.sk>
Mon, 26 Aug 2019 12:42:28 +0000 (12:42 +0000)
committerPavel Labath <pavel@labath.sk>
Mon, 26 Aug 2019 12:42:28 +0000 (12:42 +0000)
GetU64 returns a uint64_t. Don't store it in size_t as that is only
32-bit on 32-bit platforms.

llvm-svn: 369904

lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp

index c1eaa1dc2ed2bd2d54301af44de048282f6ec3ea..2e61c74653b94ad720954dc4832d883e17d293db 100644 (file)
@@ -550,7 +550,7 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_pRead(
   packet.SetFilePos(::strlen("vFile:pread:"));
   int fd = packet.GetS32(-1);
   if (packet.GetChar() == ',') {
-    size_t count = packet.GetU64(UINT64_MAX);
+    uint64_t count = packet.GetU64(UINT64_MAX);
     if (packet.GetChar() == ',') {
       off_t offset = packet.GetU64(UINT32_MAX);
       if (count == UINT64_MAX) {