[clang-tidy] Fix a broken fix-it provided by `modernize-use-integer-sign-comparison` (#163488)
Fixes #162981.
This is an issue with both named and functional casts, but this check
doesn't have any existing tests for the latter, so I went and added
those.