Skip to content

Use shift for MAX_SIZE #5

Description

@johnramsden

Perhaps it makes sense to use a shift so that it's clear that it's a power of two, and to increase it we just increase the shift by one.

Or maybe this should be a compile time variable?

#define MAX_SIZE 128 //Must be a power of 2

Potential fix

#define MAX_SIZE (1 << 7) // 128 - Must be a power of 2

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