Skip to content

comparison bug #21

@nitin710

Description

@nitin710

} while (startChar > -1);

The result of this comparison is always true, since startChar is uint16

It raises a warning in clang

EmotiBitPacket.cpp:380:21: warning: result of comparison of constant -1 with expression of type 'uint16_t' (aka 'unsigned short') is always true [-Wtautological-constant-out-of-range-compare]

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