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