summaryrefslogtreecommitdiff
path: root/boost/stacktrace/detail/to_dec_array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/stacktrace/detail/to_dec_array.hpp')
-rw-r--r--boost/stacktrace/detail/to_dec_array.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/stacktrace/detail/to_dec_array.hpp b/boost/stacktrace/detail/to_dec_array.hpp
index 5f025490fc..23071f29df 100644
--- a/boost/stacktrace/detail/to_dec_array.hpp
+++ b/boost/stacktrace/detail/to_dec_array.hpp
@@ -1,4 +1,4 @@
-// Copyright Antony Polukhin, 2016-2018.
+// Copyright Antony Polukhin, 2016-2019.
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
@@ -31,7 +31,7 @@ inline boost::array<char, 40> to_dec_array(std::size_t value) BOOST_NOEXCEPT {
}
for (std::size_t i = 1; i <= digits; ++i) {
- ret[digits - i] = '0' + (value % 10);
+ ret[digits - i] = static_cast<char>('0' + (value % 10));
value /= 10;
}