summaryrefslogtreecommitdiff
path: root/src/common/d2s.c
diff options
context:
space:
mode:
authorTom Lane2019-05-22 16:55:34 +0000
committerTom Lane2019-05-22 16:55:34 +0000
commitbe76af171cdb3e7465c4ef234af403f97ad79b7b (patch)
tree1fa62d2b7a6680a4237a1548f7002fa0b234b143 /src/common/d2s.c
parent66a4bad83aaa6613a45a00a488c04427f9969fb4 (diff)
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
Diffstat (limited to 'src/common/d2s.c')
-rw-r--r--src/common/d2s.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/d2s.c b/src/common/d2s.c
index 1e4782c10a4..8f4bc2a63c7 100644
--- a/src/common/d2s.c
+++ b/src/common/d2s.c
@@ -671,9 +671,9 @@ to_chars_df(const floating_decimal_64 v, const uint32 olength, char *const resul
else
{
/*
- * We can save some code later by pre-filling with zeros. We know
- * that there can be no more than 16 output digits in this form,
- * otherwise we would not choose fixed-point output.
+ * We can save some code later by pre-filling with zeros. We know that
+ * there can be no more than 16 output digits in this form, otherwise
+ * we would not choose fixed-point output.
*/
Assert(exp < 16 && exp + olength <= 16);
memset(result, '0', 16);
@@ -800,8 +800,8 @@ to_chars(floating_decimal_64 v, const bool sign, char *const result)
/*
* The thresholds for fixed-point output are chosen to match printf
- * defaults. Beware that both the code of to_chars_df and the value
- * of DOUBLE_SHORTEST_DECIMAL_LEN are sensitive to these thresholds.
+ * defaults. Beware that both the code of to_chars_df and the value of
+ * DOUBLE_SHORTEST_DECIMAL_LEN are sensitive to these thresholds.
*/
if (exp >= -4 && exp < 15)
return to_chars_df(v, olength, result + index) + sign;