|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50375 - trunk/boost/spirit/home/qi/numeric/detail
From: joel_at_[hidden]
Date: 2008-12-23 21:08:53
Author: djowel
Date: 2008-12-23 21:08:52 EST (Tue, 23 Dec 2008)
New Revision: 50375
URL: http://svn.boost.org/trac/boost/changeset/50375
Log:
fixed bug where leading zeroes more than MaxDigits are skipped
Text files modified:
trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp 2008-12-23 21:08:52 EST (Tue, 23 Dec 2008)
@@ -338,7 +338,7 @@
if (!Accumulate)
{
// skip leading zeros
- while (it != last && *it == '0')
+ while (it != last && *it == '0' && leading_zeros < MaxDigits)
{
++it;
++leading_zeros;
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