Commit ba6f8ede authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use ARRAY_SIZE

parent 6a6df5b5
......@@ -253,8 +253,9 @@ struct {
struct list in_use;
uint8_t current_note[NUM_VOICES];
} poly = {
.avail = {.array = poly.avail_array, .sup = NUM_VOICES},
.in_use = {.array = poly.in_use_array, .sup = NUM_VOICES},
.avail = {.array = poly.avail_array, .sup = ARRAY_SIZE(poly.avail_array)},
.in_use = {.array = poly.in_use_array,
.sup = ARRAY_SIZE(poly.in_use_array)},
};
uint8_t poly_acquire(void) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment