Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84795 - trunk/boost/multiprecision/cpp_int
From: john_at_[hidden]
Date: 2013-06-15 12:11:37


Author: johnmaddock
Date: 2013-06-15 12:11:37 EDT (Sat, 15 Jun 2013)
New Revision: 84795
URL: http://svn.boost.org/trac/boost/changeset/84795

Log:
Fix bug in shift operator that doesn't always normalise when we should.

Text files modified:
   trunk/boost/multiprecision/cpp_int/bitwise.hpp | 5 +----
   1 files changed, 1 insertions(+), 4 deletions(-)

Modified: trunk/boost/multiprecision/cpp_int/bitwise.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int/bitwise.hpp Sat Jun 15 09:48:07 2013 (r84794)
+++ trunk/boost/multiprecision/cpp_int/bitwise.hpp 2013-06-15 12:11:37 EDT (Sat, 15 Jun 2013) (r84795)
@@ -298,10 +298,7 @@
    //
    // We may have shifted off the end and have leading zeros:
    //
- if(truncated)
- {
- result.normalize();
- }
+ result.normalize();
 }
 
 template <unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1>


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