Skip to content

Remove casts to variable's own type #5

@tomsik68

Description

@tomsik68

In the example:

unsigned int c = 0;
foo( (unsigned int) c);

The cast to unsigned int in the function call parameter is redundant, because c already has the target type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions