|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56050 - trunk/boost/spirit/home/qi/numeric/detail
From: joel_at_[hidden]
Date: 2009-09-05 09:41:15
Author: djowel
Date: 2009-09-05 09:41:14 EDT (Sat, 05 Sep 2009)
New Revision: 56050
URL: http://svn.boost.org/trac/boost/changeset/56050
Log:
Revert broken.
Text files modified:
trunk/boost/spirit/home/qi/numeric/detail/numeric_utils.hpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 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 2009-09-05 09:41:14 EDT (Sat, 05 Sep 2009)
@@ -163,7 +163,7 @@
static void add(T& n, Char ch, mpl::false_) // unchecked add
{
const int digit = radix_traits<Radix>::digit(ch);
- n = n * T(int(Radix + digit));
+ n = n * Radix + digit;
}
template <typename T, typename Char>
@@ -194,7 +194,7 @@
static void add(T& n, Char ch, mpl::false_) // unchecked subtract
{
const int digit = radix_traits<Radix>::digit(ch);
- n = n * T(int(Radix - digit));
+ n = n * Radix - digit;
}
template <typename T, typename Char>
@@ -269,7 +269,6 @@
|| (MaxDigits > radix_traits<Radix>::template digits<T>::value)
)
&& std::numeric_limits<T>::is_modulo
- && !std::numeric_limits<T>::is_bounded
>()
);
}
@@ -350,7 +349,7 @@
}
}
- Attribute val = Accumulate ? attr : Attribute(0);
+ Attribute val = Accumulate ? attr : 0;
std::size_t count = 0;
char_type ch;
@@ -451,7 +450,7 @@
}
}
- Attribute val = Accumulate ? attr : Attribute(0);
+ Attribute val = Accumulate ? attr : 0;
char_type ch = *it;
if (!radix_check::is_valid(ch) || !extractor::call(ch, 0, val))
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