We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70bdbbe commit 6559dc1Copy full SHA for 6559dc1
tests/Nat/casting.cpp
@@ -25,7 +25,7 @@ TEST_CASE("Casting arby::Nat to float", "[casting]") {
25
auto value = GENERATE(take(1000, random((uintmax_t)0, std::numeric_limits<uintmax_t>::max())));
26
27
// float is so imprecise for large values that we need to cast the input too
28
- CHECK((float)arby::Nat((float)value) == (float)value);
+ CHECK((float)arby::Nat((long double)(float)value) == (float)value);
29
}
30
31
TEST_CASE("Casting arby::Nat to double", "[casting]") {
0 commit comments