|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73265 - sandbox/e_float/libs/e_float/src/e_float/efx
From: e_float_at_[hidden]
Date: 2011-07-20 17:19:12
Author: christopher_kormanyos
Date: 2011-07-20 17:19:11 EDT (Wed, 20 Jul 2011)
New Revision: 73265
URL: http://svn.boost.org/trac/boost/changeset/73265
Log:
- Corrected a range error in the to-string function of efx::e_float.
Text files modified:
sandbox/e_float/libs/e_float/src/e_float/efx/e_float_efx.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/e_float/libs/e_float/src/e_float/efx/e_float_efx.cpp
==============================================================================
--- sandbox/e_float/libs/e_float/src/e_float/efx/e_float_efx.cpp (original)
+++ sandbox/e_float/libs/e_float/src/e_float/efx/e_float_efx.cpp 2011-07-20 17:19:11 EDT (Wed, 20 Jul 2011)
@@ -1452,13 +1452,13 @@
// Add the digits after the decimal point.
- for(std::size_t i = static_cast<std::size_t>(0u); i < static_cast<std::size_t>(ef_elem_number); i++)
+ for(std::size_t i = static_cast<std::size_t>(1u); i < static_cast<std::size_t>(ef_elem_number); i++)
{
std::stringstream ss;
ss << std::setw(static_cast<std::streamsize>(ef_elem_digits10))
<< std::setfill(static_cast<char>('0'))
- << data[static_cast<std::size_t>(i + 1u)];
+ << data[i];
str += ss.str();
}
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