|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r76082 - in sandbox/big_number/boost/multiprecision: . detail
From: john_at_[hidden]
Date: 2011-12-20 11:46:55
Author: johnmaddock
Date: 2011-12-20 11:46:54 EST (Tue, 20 Dec 2011)
New Revision: 76082
URL: http://svn.boost.org/trac/boost/changeset/76082
Log:
Fix some MSVC warnings.
Text files modified:
sandbox/big_number/boost/multiprecision/cpp_float.hpp | 6 +++---
sandbox/big_number/boost/multiprecision/detail/mp_number_base.hpp | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
Modified: sandbox/big_number/boost/multiprecision/cpp_float.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/cpp_float.hpp (original)
+++ sandbox/big_number/boost/multiprecision/cpp_float.hpp 2011-12-20 11:46:54 EST (Tue, 20 Dec 2011)
@@ -404,7 +404,7 @@
return *this -= one();
}
- std::string str(std::streamsize digits, std::ios_base::fmtflags f)const;
+ std::string str(boost::intmax_t digits, std::ios_base::fmtflags f)const;
int compare(const cpp_float& v)const;
template <class V>
@@ -1647,7 +1647,7 @@
}
template <unsigned Digits10>
-std::string cpp_float<Digits10>::str(std::streamsize number_of_digits, std::ios_base::fmtflags f) const
+std::string cpp_float<Digits10>::str(boost::intmax_t number_of_digits, std::ios_base::fmtflags f) const
{
if(this->isinf())
{
@@ -1664,7 +1664,7 @@
}
std::string str;
- std::streamsize org_digits(number_of_digits);
+ boost::intmax_t org_digits(number_of_digits);
boost::int64_t my_exp = order();
if(number_of_digits == 0)
number_of_digits = cpp_float_max_digits10;
Modified: sandbox/big_number/boost/multiprecision/detail/mp_number_base.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/detail/mp_number_base.hpp (original)
+++ sandbox/big_number/boost/multiprecision/detail/mp_number_base.hpp 2011-12-20 11:46:54 EST (Tue, 20 Dec 2011)
@@ -363,7 +363,7 @@
#endif
template <class S>
-void format_float_string(S& str, long long my_exp, std::streamsize digits, std::ios_base::fmtflags f, bool iszero)
+void format_float_string(S& str, boost::intmax_t my_exp, boost::intmax_t digits, std::ios_base::fmtflags f, bool iszero)
{
typedef typename S::size_type size_type;
bool scientific = (f & std::ios_base::scientific) == std::ios_base::scientific;
@@ -427,7 +427,7 @@
//
// Pad out the end with zero's if we need to:
//
- std::streamsize chars = str.size();
+ boost::intmax_t chars = str.size();
chars = digits - chars;
if(scientific)
++chars;
@@ -465,7 +465,7 @@
if(fixed)
{
// We may need to add trailing zeros:
- std::streamsize l = str.find('.') + 1;
+ boost::intmax_t l = str.find('.') + 1;
l = digits - (str.size() - l);
if(l > 0)
str.append(size_type(l), '0');
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