Skip to content

Commit 7162a62

Browse files
committed
Change pre- to post-increment for better readability
1 parent edae8f3 commit 7162a62

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/rtmixer.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ void remove_action(struct action** addr, struct state* state)
3535

3636
void get_stats(PaStreamCallbackFlags flags, struct stats* stats)
3737
{
38-
++stats->blocks;
38+
stats->blocks++;
3939

40-
if (flags & paInputUnderflow) { ++stats->input_underflows; }
41-
if (flags & paInputOverflow) { ++stats->input_overflows; }
42-
if (flags & paOutputUnderflow) { ++stats->output_underflows; }
43-
if (flags & paOutputOverflow) { ++stats->output_overflows; }
40+
if (flags & paInputUnderflow) { stats->input_underflows++; }
41+
if (flags & paInputOverflow) { stats->input_overflows++; }
42+
if (flags & paOutputUnderflow) { stats->output_underflows++; }
43+
if (flags & paOutputOverflow) { stats->output_overflows++; }
4444
}
4545

4646
int callback(const void* input, void* output, frame_t frameCount

0 commit comments

Comments
 (0)