[libc-commits] [libc] [libc] fix -Wconversion in float_to_string.h (PR #74369)
via libc-commits
libc-commits at lists.llvm.org
Mon Dec 4 13:09:13 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff d605d9d7a153fb39eca2beac20f895f0407acabf bc445a3b56696e8c6336a05da49416391c0ea811 -- libc/src/__support/float_to_string.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/float_to_string.h b/libc/src/__support/float_to_string.h
index f1471d0710..e198a5a721 100644
--- a/libc/src/__support/float_to_string.h
+++ b/libc/src/__support/float_to_string.h
@@ -548,7 +548,8 @@ public:
val = POW10_SPLIT_2[p];
#endif
- const int32_t shift_amount = SHIFT_CONST + (-exponent - static_cast<int>(IDX_SIZE) * idx);
+ const int32_t shift_amount =
+ SHIFT_CONST + (-exponent - static_cast<int>(IDX_SIZE) * idx);
uint32_t digits =
internal::mul_shift_mod_1e9(mantissa, val, shift_amount);
return digits;
``````````
</details>
https://github.com/llvm/llvm-project/pull/74369
More information about the libc-commits
mailing list