|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84716 - trunk/boost/multiprecision/cpp_int
From: john_at_[hidden]
Date: 2013-06-09 12:18:38
Author: johnmaddock
Date: 2013-06-09 12:18:38 EDT (Sun, 09 Jun 2013)
New Revision: 84716
URL: http://svn.boost.org/trac/boost/changeset/84716
Log:
Fix for 0 % N giving wrong answer in cpp_int.
Refs #8670.
Text files modified:
trunk/boost/multiprecision/cpp_int/divide.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/multiprecision/cpp_int/divide.hpp
==============================================================================
--- trunk/boost/multiprecision/cpp_int/divide.hpp Sun Jun 9 10:23:18 2013 (r84715)
+++ trunk/boost/multiprecision/cpp_int/divide.hpp 2013-06-09 12:18:38 EDT (Sun, 09 Jun 2013) (r84716)
@@ -82,7 +82,7 @@
if((r_order == 0) && (*px == 0))
{
// x is zero, so is the result:
- r = y;
+ r = x;
if(result)
*result = x;
return;
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