File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,7 @@ protected:
409
409
static _LIBCPP_CONSTEXPR const bool is_exact = false ;
410
410
static _LIBCPP_CONSTEXPR const int radix = __FLT_RADIX__;
411
411
_LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type epsilon () _NOEXCEPT {return __LDBL_EPSILON__;}
412
- _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error () _NOEXCEPT {return 0.5 ;}
412
+ _LIBCPP_INLINE_VISIBILITY static _LIBCPP_CONSTEXPR type round_error () _NOEXCEPT {return 0 .5L ;}
413
413
414
414
static _LIBCPP_CONSTEXPR const int min_exponent = __LDBL_MIN_EXP__;
415
415
static _LIBCPP_CONSTEXPR const int min_exponent10 = __LDBL_MIN_10_EXP__;
Original file line number Diff line number Diff line change @@ -1479,7 +1479,7 @@ struct _LIBCPP_TEMPLATE_VIS hash<float>
1479
1479
size_t operator ()(float __v) const _NOEXCEPT
1480
1480
{
1481
1481
// -0.0 and 0.0 should return same hash
1482
- if (__v == 0.0 )
1482
+ if (__v == 0 .0f )
1483
1483
return 0 ;
1484
1484
return __scalar_hash<float >::operator ()(__v);
1485
1485
}
@@ -1507,7 +1507,7 @@ struct _LIBCPP_TEMPLATE_VIS hash<long double>
1507
1507
size_t operator ()(long double __v) const _NOEXCEPT
1508
1508
{
1509
1509
// -0.0 and 0.0 should return same hash
1510
- if (__v == 0.0 )
1510
+ if (__v == 0 .0L )
1511
1511
return 0 ;
1512
1512
#if defined(__i386__)
1513
1513
// Zero out padding bits
You can’t perform that action at this time.
0 commit comments