Skip to content

Commit

Permalink
cleaning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Aug 24, 2024
1 parent ab7f0a0 commit d6746f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/basictest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,13 @@ bool check_file(std::string file_name) {
#ifdef __STDCPP_FLOAT16_T__
// Parse as 16-bit float
std::float16_t parsed_16{};
//auto fast_float_r16 =
auto fast_float_r16 =
fast_float::from_chars(number_string, end_of_string, parsed_16);
//if (fast_float_r16.ec != std::errc() &&
// fast_float_r16.ec != std::errc::result_out_of_range) {
//std::cerr << "16-bit fast_float parsing failure for: " + str + "\n";
//return false;
// }
if (fast_float_r16.ec != std::errc() &&
fast_float_r16.ec != std::errc::result_out_of_range) {
std::cerr << "16-bit fast_float parsing failure for: " + str + "\n";
return false;
}
#endif
// Parse as 32-bit float
float parsed_32;
Expand Down

0 comments on commit d6746f0

Please sign in to comment.