Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77774 - sandbox/big_number/boost/multiprecision/detail/functions
From: john_at_[hidden]
Date: 2012-04-05 03:54:11


Author: johnmaddock
Date: 2012-04-05 03:54:09 EDT (Thu, 05 Apr 2012)
New Revision: 77774
URL: http://svn.boost.org/trac/boost/changeset/77774

Log:
Correct logic to detect when string representation has enough bits.
Text files modified:
   sandbox/big_number/boost/multiprecision/detail/functions/constants.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/big_number/boost/multiprecision/detail/functions/constants.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/detail/functions/constants.hpp (original)
+++ sandbox/big_number/boost/multiprecision/detail/functions/constants.hpp 2012-04-05 03:54:09 EDT (Thu, 05 Apr 2012)
@@ -35,7 +35,7 @@
    //
    // Check if we can just construct from string:
    //
- if(digits * 1000L / 301 < 1100)
+ if(digits < 3640)
    {
       num = string_val;
       return;
@@ -92,7 +92,7 @@
    //
    // Check if we can just construct from string:
    //
- if(digits * 1000L / 301 < 1100)
+ if(digits < 3640)
    {
       result = string_val;
       return;
@@ -138,7 +138,7 @@
    //
    // Check if we can just construct from string:
    //
- if(digits * 1000L / 301 < 1100)
+ if(digits < 3640)
    {
       result = string_val;
       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