[clang] [clang] Warn on signed char array constant conversion (PR #203792)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 9 10:54:05 PDT 2026
================
@@ -13281,9 +13280,9 @@ static bool isSameWidthConstantConversion(Sema &S, Expr *E, QualType T,
return false;
}
- // If the CC location points to a '{', and the type is char, then assume
- // assume it is an array initialization.
- if (CC.isValid() && T->isCharType()) {
+ // If the CC location points to a '{' and the type is an unsigned character
----------------
filaka771 wrote:
Thanks! Already fixed.
https://github.com/llvm/llvm-project/pull/203792
More information about the cfe-commits
mailing list