|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86620 - sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float
From: john_at_[hidden]
Date: 2013-11-11 11:50:08
Author: johnmaddock
Date: 2013-11-11 11:50:08 EST (Mon, 11 Nov 2013)
New Revision: 86620
URL: http://svn.boost.org/trac/boost/changeset/86620
Log:
Fix some x64 warnings.
Text files modified:
sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float/io.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float/io.hpp
==============================================================================
--- sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float/io.hpp Mon Nov 11 11:29:00 2013 (r86619)
+++ sandbox/multiprecision.cpp_bin_float/boost/multiprecision/cpp_bin_float/io.hpp 2013-11-11 11:50:08 EST (Mon, 11 Nov 2013) (r86620)
@@ -633,7 +633,7 @@
// is really a test of whether we calculated the
// decimal exponent correctly:
//
- int digits_got = i ? s.size() : 0;
+ boost::intmax_t digits_got = i ? static_cast<boost::intmax_t>(s.size()) : 0;
if(digits_got != digits_wanted)
{
base10_exp += digits_got - digits_wanted;
@@ -657,7 +657,7 @@
//
if((roundup == 2) || ((roundup == 1) && ((s[s.size() - 1] - '0') & 1)))
{
- boost::multiprecision::detail::round_string_up_at(s, s.size() - 1, base10_exp);
+ boost::multiprecision::detail::round_string_up_at(s, static_cast<int>(s.size() - 1), base10_exp);
}
if(sign())
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk