|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55532 - trunk/boost/spirit/home/karma/numeric/detail
From: frabar666_at_[hidden]
Date: 2009-08-11 16:36:43
Author: fbarel
Date: 2009-08-11 16:36:43 EDT (Tue, 11 Aug 2009)
New Revision: 55532
URL: http://svn.boost.org/trac/boost/changeset/55532
Log:
Spirit: fix gcc test failures when FP_NAN/FP_INFINITE are anonymous enums
Text files modified:
trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
Modified: trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp
==============================================================================
--- trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp (original)
+++ trunk/boost/spirit/home/karma/numeric/detail/numeric_utils.hpp 2009-08-11 16:36:43 EDT (Tue, 11 Aug 2009)
@@ -632,9 +632,9 @@
call (OutputIterator& sink, float n, Policies const& p = Policies())
{
int fpclass = (math::fpclassify)(n);
- if (FP_NAN == fpclass)
+ if ((int)FP_NAN == fpclass)
return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
- else if (FP_INFINITE == fpclass)
+ else if ((int)FP_INFINITE == fpclass)
return Policies::template inf<force_sign, CharEncoding, Tag>(sink, n);
return call_n(sink, n, p);
}
@@ -644,9 +644,9 @@
call (OutputIterator& sink, double n, Policies const& p = Policies())
{
int fpclass = (math::fpclassify)(n);
- if (FP_NAN == fpclass)
+ if ((int)FP_NAN == fpclass)
return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
- else if (FP_INFINITE == fpclass)
+ else if ((int)FP_INFINITE == fpclass)
return Policies::template inf<force_sign, CharEncoding, Tag>(sink, n);
return call_n(sink, n, p);
}
@@ -656,9 +656,9 @@
call (OutputIterator& sink, long double n, Policies const& p = Policies())
{
int fpclass = (math::fpclassify)(n);
- if (FP_NAN == fpclass)
+ if ((int)FP_NAN == fpclass)
return Policies::template nan<force_sign, CharEncoding, Tag>(sink, n);
- else if (FP_INFINITE == fpclass)
+ else if ((int)FP_INFINITE == fpclass)
return Policies::template inf<force_sign, CharEncoding, Tag>(sink, n);
return call_n(sink, n, p);
}
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