Skip to content

Commit 6f0049a

Browse files
committed
lint
1 parent 95dedd0 commit 6f0049a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

benchmarks/benchmark.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ int main(int argc, char **argv) {
236236
<< std::endl;
237237
#endif
238238
}
239-
if(argc > 1) {
239+
if (argc > 1) {
240240
fileload(argv[1]);
241241
return EXIT_SUCCESS;
242242
}

include/fast_float/ascii_number.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,8 @@ parse_number_string(UC const *p, UC const *pend,
292292
// assume p < pend, so dereference without checks;
293293
answer.negative = (*p == UC('-'));
294294
// C++17 20.19.3.(7.1) explicitly forbids '+' sign here
295-
if ((*p == UC('-')) ||
296-
(uint64_t(fmt & chars_format::allow_leading_plus) &&
297-
!basic_json_fmt && *p == UC('+'))) {
295+
if ((*p == UC('-')) || (uint64_t(fmt & chars_format::allow_leading_plus) &&
296+
!basic_json_fmt && *p == UC('+'))) {
298297
++p;
299298
if (p == pend) {
300299
return report_parse_error<UC>(

include/fast_float/parse_number.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ from_chars_float_advanced(UC const *first, UC const *last, T &value,
304304
answer.ptr = first;
305305
return answer;
306306
}
307-
parsed_number_string_t<UC> pns = uint64_t(fmt & detail::basic_json_fmt) ?
308-
parse_number_string<true, UC>(first, last, options) :
309-
parse_number_string<false, UC>(first, last, options);
307+
parsed_number_string_t<UC> pns =
308+
uint64_t(fmt & detail::basic_json_fmt)
309+
? parse_number_string<true, UC>(first, last, options)
310+
: parse_number_string<false, UC>(first, last, options);
310311
if (!pns.valid) {
311312
if (uint64_t(fmt & chars_format::no_infnan)) {
312313
answer.ec = std::errc::invalid_argument;

0 commit comments

Comments
 (0)