diff options
author | Jim Ingham <jingham@apple.com> | 2016-03-12 03:33:36 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2016-03-12 03:33:36 +0000 |
commit | 190636bcc1b72227b3620d6e17ad0ac01fcdf228 (patch) | |
tree | d49074dcae65dc699dd8f0f1ebf307f77a0d2681 /lldb/source/Core/DataEncoder.cpp | |
parent | 241fb61fdb417857f78ff177468efbea0c7b48b6 (diff) | |
download | bcm5719-llvm-190636bcc1b72227b3620d6e17ad0ac01fcdf228.tar.gz bcm5719-llvm-190636bcc1b72227b3620d6e17ad0ac01fcdf228.zip |
Let's not convert from UINT32_MAX to the std::numeric_limits version.
llvm-svn: 263333
Diffstat (limited to 'lldb/source/Core/DataEncoder.cpp')
-rw-r--r-- | lldb/source/Core/DataEncoder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Core/DataEncoder.cpp b/lldb/source/Core/DataEncoder.cpp index cd853850a6b..15955773d98 100644 --- a/lldb/source/Core/DataEncoder.cpp +++ b/lldb/source/Core/DataEncoder.cpp @@ -233,7 +233,7 @@ DataEncoder::PutU8 (uint32_t offset, uint8_t value) m_start[offset] = value; return offset + 1; } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } uint32_t @@ -248,7 +248,7 @@ DataEncoder::PutU16 (uint32_t offset, uint16_t value) return offset + sizeof (value); } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } uint32_t @@ -263,7 +263,7 @@ DataEncoder::PutU32 (uint32_t offset, uint32_t value) return offset + sizeof (value); } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } uint32_t @@ -278,7 +278,7 @@ DataEncoder::PutU64 (uint32_t offset, uint64_t value) return offset + sizeof (value); } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } //---------------------------------------------------------------------- @@ -304,7 +304,7 @@ DataEncoder::PutMaxU64 (uint32_t offset, uint32_t byte_size, uint64_t value) assert(!"GetMax64 unhandled case!"); break; } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } uint32_t @@ -318,7 +318,7 @@ DataEncoder::PutData (uint32_t offset, const void *src, uint32_t src_len) memcpy (m_start + offset, src, src_len); return offset + src_len; } - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } uint32_t @@ -332,5 +332,5 @@ DataEncoder::PutCString (uint32_t offset, const char *cstr) { if (cstr != nullptr) return PutData (offset, cstr, strlen(cstr) + 1); - return std::numeric_limits<uint32_t>::max(); + return UINT32_MAX; } |