Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Multiplication result may overflow #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luke-goddard
Copy link

A multiplication result that is converted to a larger type can be a sign that the result can overflow the type converted from.
Use a cast to ensure that the multiplication is done using the larger integer type to avoid overflow.

A multiplication result that is converted to a larger type can be a sign that the result can overflow the type converted from.
Use a cast to ensure that the multiplication is done using the larger integer type to avoid overflow.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant