Skip to content
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

fix potential overflow and limit upper bound #17

Merged
merged 1 commit into from
May 8, 2020

Conversation

wqliang
Copy link
Contributor

@wqliang wqliang commented May 8, 2020

it may cause overflow when calculate with int and assigns to long.
assign int value to a long variable and then do calculating to avoid overflow.

@qqeasonchen qqeasonchen merged commit 305eef0 into apache:develop May 8, 2020
xwm1992 pushed a commit that referenced this pull request Aug 4, 2022
fix potential overflow and limit upper bound
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.

None yet

2 participants