Skip to content

uint16_t i = (p_queue->write_idx)++ & (capacity - 1); => uint16_t i = (p_queue->write_idx)++ % capacity ;  #3

@wsd1

Description

@wsd1

If capacity not equal to 2\4\8\16\32... there will be some issues here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions