Skip to content

Conversation

@heckad
Copy link
Contributor

@heckad heckad commented Oct 1, 2020

I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.

fmt\include\fmt/format-inl.h(1797): warning C4018: '<=': signed/unsigned mismatch

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

uint32_t magic_number;
int shift_amount;
int divisor_times_10;
uint32_t shift_amount;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary? The warning only refers to divisor_times_10.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can shift_amount be less then 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No but if this doesn't cause a warning, please keep it as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any guarantees that it won't give out in the future?

@vitaut vitaut merged commit a581e9e into fmtlib:master Oct 2, 2020
@heckad heckad deleted the patch-1 branch November 2, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants