Skip to content

Commit

Permalink
fix: use std::numeric_limits<>::is_iec559 instead of ::is_iec_559 (
Browse files Browse the repository at this point in the history
  • Loading branch information
AbitTheGray authored Oct 7, 2024
1 parent 464cf63 commit a6a2d0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/fpm/fixed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ struct numeric_limits<fpm::fixed<B,I,F,R>>
static constexpr std::float_denorm_style has_denorm = std::denorm_absent;
static constexpr bool has_denorm_loss = false;
static constexpr std::float_round_style round_style = std::round_to_nearest;
static constexpr bool is_iec_559 = false;
static constexpr bool is_iec559 = false;
static constexpr bool is_bounded = true;
static constexpr bool is_modulo = std::numeric_limits<B>::is_modulo;
static constexpr int digits = std::numeric_limits<B>::digits;
Expand Down Expand Up @@ -459,7 +459,7 @@ constexpr bool numeric_limits<fpm::fixed<B,I,F,R>>::has_denorm_loss;
template <typename B, typename I, unsigned int F, bool R>
constexpr std::float_round_style numeric_limits<fpm::fixed<B,I,F,R>>::round_style;
template <typename B, typename I, unsigned int F, bool R>
constexpr bool numeric_limits<fpm::fixed<B,I,F,R>>::is_iec_559;
constexpr bool numeric_limits<fpm::fixed<B,I,F,R>>::is_iec559;
template <typename B, typename I, unsigned int F, bool R>
constexpr bool numeric_limits<fpm::fixed<B,I,F,R>>::is_bounded;
template <typename B, typename I, unsigned int F, bool R>
Expand Down
2 changes: 1 addition & 1 deletion tests/customizations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ TYPED_TEST(customizations, numeric_limits)
EXPECT_EQ(L::has_denorm, std::denorm_absent);
EXPECT_EQ(L::has_denorm_loss, false);
EXPECT_EQ(L::round_style, std::round_to_nearest);
EXPECT_EQ(L::is_iec_559, false);
EXPECT_EQ(L::is_iec559, false);
EXPECT_EQ(L::is_bounded, true);
EXPECT_EQ(L::is_modulo, false);
EXPECT_EQ(L::digits, TL::digits());
Expand Down

0 comments on commit a6a2d0c

Please sign in to comment.