Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
turborium committed Nov 11, 2023
1 parent 07c0158 commit 844dd60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions C/pure_parse_float/pure_parse_float.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ int read_text_to_fixed_decimal(fixed_decimal *decimal, const char *text, char **
// read mantissa
has_digit = 0;// has read any digit (0..9)
has_point = 0;// has read decimal point
while (*p != '\0') {
switch (*p) {
while (*p != '\0') {
switch (*p) {
case '0':
case '1':
case '2':
Expand Down Expand Up @@ -422,12 +422,12 @@ int read_text_to_fixed_decimal(fixed_decimal *decimal, const char *text, char **
return 1;// make
}
has_point = 1;
break;
default:
goto end_read_mantissa;
}
break;
default:
goto end_read_mantissa;
}
p++;
}
}

end_read_mantissa:

Expand Down
2 changes: 1 addition & 1 deletion C/test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,5 @@ int main(int argc, char *argv[])
printf("Fatal error count: %i\n", fatal_error_count);
printf("One ulp error count: %i (%.3f%%)\n", one_ulp_error_count, 100.0 * ((double)one_ulp_error_count / (double)test_count));

return 0;
return 0;
}

0 comments on commit 844dd60

Please sign in to comment.