mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
MISRAC2012-Rule-20.7: use parentheses around macro parameters [a2383]
This commit is contained in:
parent
944188908f
commit
968b2eaf63
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user