test-timer_rate: fix build error with -std=gnu++20

Fixes #4898
This commit is contained in:
Christian Prochaska 2023-05-16 13:23:05 +02:00 committed by Christian Helmuth
parent 44bed3495d
commit 9e3233f13f

View File

@ -38,7 +38,7 @@ class Measurement
void _handle() void _handle()
{ {
_count++; _count = _count + 1;
if (_count % _nr_of_periods != 1) { if (_count % _nr_of_periods != 1) {
return; return;
} }