Skip to content

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

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

BUGFIX: avoid impossible comparison (staticcheck/SA4003)#4015
tlimoncelli merged 2 commits into
DNSControl: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.
Comment thread pkg/providers/capabilities.go Outdated
@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 DNSControl: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 <6293917+tlimoncelli@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants