-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent implicit down cast. This may give compiler warnings. #1136
Conversation
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for the commit author(s). If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. |
I added my alternate/commit E-mail address to my google account. |
CLAs look good, thanks! |
@@ -120,21 +120,21 @@ TEST(ArgsTest, AcceptsOneTemplateArg) { | |||
} | |||
|
|||
TEST(ArgsTest, AcceptsTwoTemplateArgs) { | |||
const tuple<short, int, long> t(4, 5, 6L); // NOLINT | |||
const tuple<short, int, long> t(static_cast<short>(4), 5, 6L); // NOLINT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "NOLINT" still required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe not. How can I tell? Is lint run during the "check" process?
Could you please provide clear test evidence before and after |
Is this the test evidence you are looking/asking for?
before:
after:
|
Can be closed. PR #1218 fixed this |
Closing this PR, PR #1218 fixed this. |
This is a fix for issue #1133.