[Lldb-commits] [lldb] r232126 - Silence warnings here by explicit cast.
Enrico Granata
egranata at apple.com
Thu Mar 12 17:31:45 PDT 2015
Author: enrico
Date: Thu Mar 12 19:31:45 2015
New Revision: 232126
URL: http://llvm.org/viewvc/llvm-project?rev=232126&view=rev
Log:
Silence warnings here by explicit cast.
Modified:
lldb/trunk/source/Utility/StringExtractor.cpp
Modified: lldb/trunk/source/Utility/StringExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Utility/StringExtractor.cpp?rev=232126&r1=232125&r2=232126&view=diff
==============================================================================
--- lldb/trunk/source/Utility/StringExtractor.cpp (original)
+++ lldb/trunk/source/Utility/StringExtractor.cpp Thu Mar 12 19:31:45 2015
@@ -143,7 +143,7 @@ StringExtractor::GetU32 (uint32_t fail_v
char *end = nullptr;
const char *start = m_packet.c_str();
const char *cstr = start + m_index;
- uint32_t result = ::strtoul (cstr, &end, base);
+ uint32_t result = static_cast<uint32_t>(::strtoul (cstr, &end, base));
if (end && end != cstr)
{
@@ -162,7 +162,7 @@ StringExtractor::GetS32 (int32_t fail_va
char *end = nullptr;
const char *start = m_packet.c_str();
const char *cstr = start + m_index;
- int32_t result = ::strtol (cstr, &end, base);
+ int32_t result = static_cast<int32_t>(::strtol (cstr, &end, base));
if (end && end != cstr)
{
More information about the lldb-commits
mailing list