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

g115: incorrect check. #1288

Open
kehiy opened this issue Jan 14, 2025 · 0 comments
Open

g115: incorrect check. #1288

kehiy opened this issue Jan 14, 2025 · 0 comments

Comments

@kehiy
Copy link

kehiy commented Jan 14, 2025

Summary

Steps to reproduce the behavior

use this code:

kind, err := strconv.ParseUint("<number>", 10, 16)
if err != nil {
    return err
}

v := uint16(kind)

in this case, based on golang document i would get an error when the number is more than uint16 bisize and this is handled. but i still get a g115 error.

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

No branches or pull requests

1 participant