summaryrefslogtreecommitdiff
path: root/boost/spirit/home/karma/numeric/detail/real_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/spirit/home/karma/numeric/detail/real_utils.hpp')
-rw-r--r--boost/spirit/home/karma/numeric/detail/real_utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/spirit/home/karma/numeric/detail/real_utils.hpp b/boost/spirit/home/karma/numeric/detail/real_utils.hpp
index 6acaf87707..526985d280 100644
--- a/boost/spirit/home/karma/numeric/detail/real_utils.hpp
+++ b/boost/spirit/home/karma/numeric/detail/real_utils.hpp
@@ -104,7 +104,7 @@ namespace boost { namespace spirit { namespace karma
long exp = traits::truncate_to_long::call(-dim);
if (exp != -dim)
++exp;
- dim = -exp;
+ dim = static_cast<U>(-exp);
n *= spirit::traits::pow10<U>(exp);
}
}