Skip to content

left-shifted integers cause sanity checker warnings #4

@g3gg0

Description

@g3gg0

r->data[n1] |= (1 << n2);

there you shift a signed integer left, which is causing sanity checker errors (for a good reason).

recommendation:

   // Set bit value
   if (value)
      r->data[n1] |= (1U << n2);
   else
      r->data[n1] &= ~(1U << n2);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions