Skip to content

Commit

Permalink
Use ..._MAX macro from stdint.h
Browse files Browse the repository at this point in the history
  • Loading branch information
6arms1leg committed Apr 11, 2022
1 parent f93aff1 commit d50fcff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/TKLsdlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void TKLsdlr_exec(void) {
rollover) */
if ((*pv_p_getTick)() - p_tskLst[i].lastRun >
p_tskLst[i].deadline) {
if (UCHAR_MAX > pv_tskOverrunCnt) { /* Counter unsaturated? */
if (UINT8_MAX > pv_tskOverrunCnt) { /* Counter unsaturated? */
pv_tskOverrunCnt++; /* Incr. deadline overrun counter */
}

Expand Down
1 change: 0 additions & 1 deletion src/TKLsdlr.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "stdint.h"
#include "stddef.h"
#include "stdbool.h"
#include "limits.h"
#include "assert.h" /* For sanity checks (Design by Contract) */

#include "TKLtyp.h"
Expand Down

0 comments on commit d50fcff

Please sign in to comment.