summaryrefslogtreecommitdiff
path: root/source/Utility/StringExtractor.cpp
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-07-03 16:57:06 +0000
committerEd Maste <emaste@FreeBSD.org>2015-07-03 16:57:06 +0000
commit5e95aa85bb660d45e9905ef1d7180b2678280660 (patch)
tree3c2e41c3be19b7fc7666ed45a5f91ec3b6e35f2a /source/Utility/StringExtractor.cpp
parent12bd4897ff0678fa663e09d78ebc22dd255ceb86 (diff)
Diffstat (limited to 'source/Utility/StringExtractor.cpp')
-rw-r--r--source/Utility/StringExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Utility/StringExtractor.cpp b/source/Utility/StringExtractor.cpp
index a2cbe6cd4869..e82c83dfd093 100644
--- a/source/Utility/StringExtractor.cpp
+++ b/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<uint32_t>(::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<int32_t>(::strtol (cstr, &end, base));
if (end && end != cstr)
{