2 Overwritten operand in code generation for division.
18 const Buzzer_request
* request
;
30 ASSERT(truecount
<= 1);
35 void Buzzer_tick(Buzzer
* const self
)
37 const Buzzer_request
* const request
= self
->request
;
39 const uint8_t state
= self
->state
+ 1U;
43 if(request
->duration
&& (state
< request
->duration
))
47 else if (request
->interval
)
49 if ((state
% request
->interval
) == 0U)
51 // This if statement is always true due to overwritten request->interval.
52 if((state
/ request
->interval
) % 2U)
67 Buzzer_request request
= { 1, 0 };
68 Buzzer buzzer
= { &request
, 0 };