MISRAC2012-Rule-20.7: use parentheses around macro parameters [a2383]

This commit is contained in:
Matthias Ringwald 2019-11-15 14:36:44 +01:00
parent 944188908f
commit 968b2eaf63
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@
#define USE_CMAC_ENGINE
#endif
#define BTSTACK_TAG32(A,B,C,D) ((A << 24) | (B << 16) | (C << 8) | D)
#define BTSTACK_TAG32(A,B,C,D) (((A) << 24) | ((B) << 16) | ((C) << 8) | (D))
//
// SM internal types and globals

View File

@ -53,7 +53,7 @@
#include <string.h>
// calculate combined ogf/ocf value
#define OPCODE(ogf, ocf) (ocf | ogf << 10)
#define OPCODE(ogf, ocf) ((ocf) | (ogf) << 10)
/**
* construct HCI Command based on template