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:
correctmost 2026-06-09 03:48:54 -04:00
parent e8ec8e8f34
commit 6ae691372f

View File

@ -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;