Skip to content

redundant/erroneous condition #3

Description

@m000

The following condition seems to be redundant or maybe plain erroneous (e.g. it was meant to be a >0):

if(offset >= 0 && it->second.vi)

The offset is calculated as a modulo, so it will always be greater than 0:

size_t offset = (addr - it->first.base) % it->second.item_size;

This was actually intercepted by the compiler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions