[clang] [sema] Improve -Wsign-compare (PR #65684)

via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 8 05:46:28 PDT 2023


apple-fcloutier wrote:

IMO, the `< 0` check is fundamentally the right in-place fix to offer, although I went back and forth on attaching it to the warning or the note. It's a little disappointing that we still need the explicit cast to silence the warning, however.

https://github.com/llvm/llvm-project/pull/65684


More information about the cfe-commits mailing list