c_locale.cc (__convert_to_v): Fix !__FLT_HAS_INFINITY__ case.
2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com> * config/locale/generic/c_locale.cc (__convert_to_v): Fix !__FLT_HAS_INFINITY__ case. From-SVN: r140823
This commit is contained in:
parent
3e93b27552
commit
ffecec4dce
@ -1,3 +1,8 @@
|
||||
2008-10-01 Andrew Pinski <andrew_pinski@playstation.sony.com>
|
||||
|
||||
* config/locale/generic/c_locale.cc (__convert_to_v): Fix
|
||||
!__FLT_HAS_INFINITY__ case.
|
||||
|
||||
2008-09-30 Chris Fairles <cfairles@gcc.gnu.org>
|
||||
|
||||
* include/std/tuple (tuple<>::swap): Implement swap for tuple as per
|
||||
|
@ -97,10 +97,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
||||
else if (__overflow
|
||||
#if __FLT_HAS_INFINITY__
|
||||
|| __v == numeric_limits<float>::infinity()
|
||||
|| __v == -numeric_limits<float>::infinity())
|
||||
|| __v == -numeric_limits<float>::infinity()
|
||||
#else
|
||||
|| ((__v > 1.0f || __v < -1.0f) && errno == ERANGE)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
if (__v > 0.0f)
|
||||
__v = numeric_limits<float>::max();
|
||||
|
Loading…
Reference in New Issue
Block a user