mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-06-15 00:16:11 +08:00
Remove an else if statement that is always false
Commit b334317d added the same std::isnan(v) check as an earlier condition. The warning was reported by cppcheck.
This commit is contained in:
parent
e8ec8e8f34
commit
6ae691372f
@ -45,11 +45,6 @@ void all_32bit_values() {
|
||||
std::cerr << "I got " << std::hexfloat << result_value
|
||||
<< " but I was expecting " << v << std::endl;
|
||||
abort();
|
||||
} else if (std::isnan(v)) {
|
||||
if (!std::isnan(result_value)) {
|
||||
std::cerr << "not nan" << buffer << std::endl;
|
||||
abort();
|
||||
}
|
||||
} else if (result_value != v) {
|
||||
std::cerr << "no match ? " << buffer << std::endl;
|
||||
std::cout << "started with " << std::hexfloat << v << std::endl;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user