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 strconv.ParseFloat usage #1335

Merged
merged 1 commit into from Feb 17, 2022
Merged

Conversation

kolyshkin
Copy link
Contributor

What type of PR is this?

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

The bitSize argument of ParseFloat should either be 32 or 64, not 10.

Found by staticcheck linter.

Which issue(s) this PR fixes:

none

Special notes for your reviewer:

none

Testing

Should be covered by existing tests, e.g. TestFloat64Flag*.

Release Notes

NONE

The bitSize argument of ParseFloat should either be 32 or 64, not 10.

Found by staticcheck linter.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin requested a review from a team as a code owner February 14, 2022 20:00
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rliebz rliebz merged commit 81cb783 into urfave:master Feb 17, 2022
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.

None yet

3 participants