Skip to content

Commit c526899

Browse files
lemiredalle
authored andcommitted
cleaning.
1 parent bfcff49 commit c526899

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/basictest.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,13 @@ bool check_file(std::string file_name) {
307307
#ifdef __STDCPP_FLOAT16_T__
308308
// Parse as 16-bit float
309309
std::float16_t parsed_16{};
310-
// auto fast_float_r16 =
311-
fast_float::from_chars(number_string, end_of_string, parsed_16);
312-
// if (fast_float_r16.ec != std::errc() &&
313-
// fast_float_r16.ec != std::errc::result_out_of_range) {
314-
// std::cerr << "16-bit fast_float parsing failure for: " + str +
315-
// "\n"; return false;
316-
// }
310+
auto fast_float_r16 =
311+
fast_float::from_chars(number_string, end_of_string, parsed_16);
312+
if (fast_float_r16.ec != std::errc() &&
313+
fast_float_r16.ec != std::errc::result_out_of_range) {
314+
std::cerr << "16-bit fast_float parsing failure for: " + str + "\n";
315+
return false;
316+
}
317317
#endif
318318
// Parse as 32-bit float
319319
float parsed_32;

0 commit comments

Comments
 (0)