diff options
author | Pavel Labath <pavel@labath.sk> | 2019-08-26 12:42:28 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-08-26 12:42:28 +0000 |
commit | 27f56c1200aa78e3b651cb8ff913b7b727211d8d (patch) | |
tree | 1a3ac0db30310e7aa4465974cbda1d1bf44427b5 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | c7deb7f808eed24cf69d44f8e7c9a7eea2968050 (diff) | |
download | bcm5719-llvm-27f56c1200aa78e3b651cb8ff913b7b727211d8d.tar.gz bcm5719-llvm-27f56c1200aa78e3b651cb8ff913b7b727211d8d.zip |
Fix a type mismatch error in GDBRemoteCommunicationServerCommon
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp index c1eaa1dc2ed..2e61c74653b 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -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) { |