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

intrange generates unnecessary type conversions #49

Open
rockdaboot opened this issue Feb 19, 2025 · 0 comments
Open

intrange generates unnecessary type conversions #49

rockdaboot opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@rockdaboot
Copy link

Describe the bug
For loops like

for i := int32(0); i < N; i++

are converted into

for i := range int32(N)

when using intrange, which triggers the unconvert linter if enabled.

Expected behavior
The conversion seems unnecessary and should be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants