Skip to content

Commit

Permalink
Fixed std::numeric_limit::max() call
Browse files Browse the repository at this point in the history
  • Loading branch information
gistrec committed May 18, 2020
1 parent 3f0cf26 commit 9e765f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/unit-cbor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ TEST_CASE("CBOR")
}
SECTION("3.40282e+38(max float)")
{
float v = std::numeric_limits<float>::max();
float v = (std::numeric_limits<float>::max)();
json j = v;
std::vector<uint8_t> expected =
{
Expand Down Expand Up @@ -953,7 +953,7 @@ TEST_CASE("CBOR")
}
SECTION("1 + 3.40282e+38(more than max float)")
{
double v = static_cast<double>(std::numeric_limits<float>::max()) + 0.1e+34;
double v = static_cast<double>((std::numeric_limits<float>::max)()) + 0.1e+34;
json j = v;
std::vector<uint8_t> expected =
{
Expand Down

0 comments on commit 9e765f5

Please sign in to comment.