Misra 12.1 violation in MIN/MAX macros

master
Riccardo 2019-06-17 18:39:17 -07:00
parent 65fb5a48e7
commit 578ef22d52
1 changed files with 2 additions and 2 deletions

View File

@ -27,12 +27,12 @@
#define MIN(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; })
(_a < _b) ? _a : _b; })
#define MAX(a,b) \
({ __typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; })
(_a > _b) ? _a : _b; })
#define MAX_RESP_LEN 0x40