Skip to content

g115: incorrect check. #1288

Closed
Closed
@kehiy

Description

Summary

Steps to reproduce the behavior

use this code:

kind, err := strconv.ParseUint("<number>", 10, 16)
if err != nil {
    return err
}

v := uint16(kind)

in this case, based on golang document i would get an error when the number is more than uint16 bisize and this is handled. but i still get a g115 error.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions