Skip to content

BUGFIX: avoid impossible comparison (staticcheck/SA4003)#4015

Merged
tlimoncelli merged 2 commits intoStackExchange:mainfrom
grahammiln:staticcheck-capabilities
Jan 27, 2026
Merged

BUGFIX: avoid impossible comparison (staticcheck/SA4003)#4015
tlimoncelli merged 2 commits intoStackExchange:mainfrom
grahammiln:staticcheck-capabilities

Conversation

@grahammiln
Copy link
Copy Markdown
Contributor

Use of unsigned integer conflicts with assumptions of stringer generated code.

Use of unsigned integer conflicts with assumptions of `stringer`
generated code.
@tlimoncelli
Copy link
Copy Markdown
Contributor

I changed it to "int" since the bit size doesn't matter, and "int" is always whatever is fastest for the CPU.

@tlimoncelli tlimoncelli merged commit 59f4da4 into StackExchange:main Jan 27, 2026
tlimoncelli added a commit that referenced this pull request Jan 27, 2026
Use of unsigned integer conflicts with assumptions of `stringer`
generated code.

---------

Co-authored-by: Tom Limoncelli <[email protected]>
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.

2 participants