8000 Parse 64bit number to uint64 · Issue #685 · tarantool/cartridge-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content < 8000 react-partial partial-name="keyboard-shortcuts-dialog" data-ssr="false" data-attempted-ssr="false" data-react-profiling="false" >
Parse 64bit number to uint64 #685
Open
@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

      0