|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84729 - trunk/boost/multiprecision
From: john_at_[hidden]
Date: 2013-06-10 11:32:34
Author: johnmaddock
Date: 2013-06-10 11:32:34 EDT (Mon, 10 Jun 2013)
New Revision: 84729
URL: http://svn.boost.org/trac/boost/changeset/84729
Log:
Change type of string index to std::string::difference_type.
Text files modified:
trunk/boost/multiprecision/cpp_int.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Modified: trunk/boost/multiprecision/cpp_int.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int.hpp Mon Jun 10 11:23:08 2013 (r84728)
+++ trunk/boost/multiprecision/cpp_int.hpp 2013-06-10 11:32:34 EDT (Mon, 10 Jun 2013) (r84729)
@@ -1456,7 +1456,7 @@
limb_type mask = static_cast<limb_type>((1u << shift) - 1);
typename base_type::local_limb_type v = *this->limbs();
result.assign(Bits / shift + (Bits % shift ? 1 : 0), '0');
- int pos = result.size() - 1;
+ std::string::difference_type pos = result.size() - 1;
for(unsigned i = 0; i < Bits / shift; ++i)
{
char c = '0' + static_cast<char>(v & mask);
@@ -1489,7 +1489,7 @@
else
{
result.assign(Bits / 3 + 1, '0');
- int pos = result.size() - 1;
+ std::string::difference_type pos = result.size() - 1;
typename base_type::local_limb_type v(*this->limbs());
bool neg = false;
if(this->sign())
@@ -1541,7 +1541,7 @@
limb_type mask = static_cast<limb_type>((1u << shift) - 1);
cpp_int_backend t(*this);
result.assign(Bits / shift + (Bits % shift ? 1 : 0), '0');
- int pos = result.size() - 1;
+ std::string::difference_type pos = result.size() - 1;
for(unsigned i = 0; i < Bits / shift; ++i)
{
char c = '0' + static_cast<char>(t.limbs()[0] & mask);
@@ -1574,7 +1574,7 @@
else
{
result.assign(Bits / 3 + 1, '0');
- int pos = result.size() - 1;
+ std::string::difference_type pos = result.size() - 1;
cpp_int_backend t(*this);
cpp_int_backend r;
bool neg = false;
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