Skip to content

This fixes the Visual Studio 2019 warning W26451#175

Open
FelixPetriconi wants to merge 1 commit intoboostorg:developfrom
FelixPetriconi:FixVSWarning26451
Open

This fixes the Visual Studio 2019 warning W26451#175
FelixPetriconi wants to merge 1 commit intoboostorg:developfrom
FelixPetriconi:FixVSWarning26451

Conversation

@FelixPetriconi
Copy link

Please consider this small fix to avoid a Visual Studio warning.
(Arithmetic overflow Using operator* on a 4 byte value and then casting the result to a 8 byte value.)

(Arithmetic overflow Using operator* on a 4 byte value and then casting the result to a 8 byte value.)
Copy link
Collaborator

@JeffGarland JeffGarland left a comment

Choose a reason for hiding this comment

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

probably a reasonable change -- would the impact be the same if we just changed the order to adjust*sub_sec so we wouldn't need the cast? In any case let's see how the CI likes the change...

@FelixPetriconi
Copy link
Author

As far as I can see the now failing builds already failed without my change. I will check your proposal of swapping the factors.

@jeking3
Copy link
Collaborator

jeking3 commented Feb 12, 2022

@FelixPetriconi rebase on develop for a complete CI scan

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.

3 participants