[libc-commits] [libc] [Libc] Turn implicit to explicit conversion (PR #130615)
via libc-commits
libc-commits at lists.llvm.org
Mon Mar 10 07:33:42 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Jan Patrick Lehr (jplehr)
<details>
<summary>Changes</summary>
This fixes a build issue on the AMDGPU libc bot after https://github.com/llvm/llvm-project/pull/126846 landed that introduced a warning.
---
Full diff: https://github.com/llvm/llvm-project/pull/130615.diff
1 Files Affected:
- (modified) libc/src/__support/high_precision_decimal.h (+1-1)
``````````diff
diff --git a/libc/src/__support/high_precision_decimal.h b/libc/src/__support/high_precision_decimal.h
index 922dce484aa6b..d5bf179e80f83 100644
--- a/libc/src/__support/high_precision_decimal.h
+++ b/libc/src/__support/high_precision_decimal.h
@@ -401,7 +401,7 @@ class HighPrecisionDecimal {
this->right_shift(MAX_SHIFT_AMOUNT);
shift_amount += MAX_SHIFT_AMOUNT;
}
- this->right_shift(-shift_amount);
+ this->right_shift(-static_cast<uint32_t>(shift_amount));
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/130615
More information about the libc-commits
mailing list