Skip to content

Parse 64bit number to uint64 #685

@DifferentialOrange

Description

@DifferentialOrange

Strconv allows to call ParseUint for 32bit number instead of 64bit with third argument so it would be later converted to 32bit number:

res, err := strconv.ParseUint(str, 10, 32)

Since we use uint64 everywhere, it should be replaced with (str, 10, 64). Or numbers should be transformed to uint32 since version numbers are not likely to be greater than max uint32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code healthImprove code readability, simplify maintenance and so on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions