Skip to content

Commit

Permalink
Always use braces
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Jul 8, 2020
1 parent 54056ff commit 7ef00bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scarlett_mixer.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,11 @@ static Mctrl* matrix_ctrl_cr (RobTkApp* ui, unsigned int c, unsigned int r)
if (r >= ui->device->smi || c >= ui->device->smo) {
return NULL;
}
if (ui->device->matrix_mix_column_major)
if (ui->device->matrix_mix_column_major) {
ctrl_id = ui->device->matrix_mix_offset + c * ui->device->matrix_mix_stride + r;
else
} else {
ctrl_id = ui->device->matrix_mix_offset + r * ui->device->matrix_mix_stride + c;
}
return &ui->ctrl[ctrl_id];
}

Expand Down

0 comments on commit 7ef00bf

Please sign in to comment.