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 ToUint64 issue with string input exceeding maximum int64 #213

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

skyjerry
Copy link
Contributor

@skyjerry skyjerry commented Mar 12, 2024

#211
The ToUint64E function was fixed to correctly handle strings that overflow the maximum value of int64.

Previously, the function incorrectly returned zero for these input values because it was using strconv.ParseInt internally, which doesn't handle values greater than the max int64.

The fix replaces the use of strconv.ParseInt with strconv.ParseUint.

Detail:
The ToUint6E4 function in the Go cast library was fixed to correctly handle strings that overflow the maximum value of int64.

Previously, the function incorrectly returned zero for these input values because it was using strconv.ParseInt internally, which doesn't handle values greater than the max int64. The fix replaces the use of strconv.ParseInt with strconv.ParseUint.
@CLAassistant
Copy link

CLAassistant commented Mar 12, 2024

CLA assistant check
All committers have signed the CLA.

@skyjerry skyjerry changed the title Fix ToUint64E function in cast library for Go Fix ToUint64 issue with string input exceeding maximum int64 Mar 12, 2024
@spf13 spf13 merged commit 487df00 into spf13:master Oct 18, 2024
1 check passed
@DCRcoder
Copy link

DCRcoder commented Dec 4, 2024

is there any plan time to release this

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.

4 participants