From f2d44ca8e258e44058eaaa64e07fa3400c2e2ca2 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 13 Mar 2015 00:31:45 +0000 Subject: Silence warnings here by explicit cast. llvm-svn: 232126 --- lldb/source/Utility/StringExtractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Utility/StringExtractor.cpp') diff --git a/lldb/source/Utility/StringExtractor.cpp b/lldb/source/Utility/StringExtractor.cpp index a2cbe6cd486..e82c83dfd09 100644 --- a/lldb/source/Utility/StringExtractor.cpp +++ b/lldb/source/Utility/StringExtractor.cpp @@ -143,7 +143,7 @@ StringExtractor::GetU32 (uint32_t fail_value, int base) 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(::strtoul (cstr, &end, base)); if (end && end != cstr) { @@ -162,7 +162,7 @@ StringExtractor::GetS32 (int32_t fail_value, int base) 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(::strtol (cstr, &end, base)); if (end && end != cstr) { -- cgit v1.2.3