Merge "Fix misc-macro-parentheses warnings in system/core."
This commit is contained in:
commit
495541c5bb
4 changed files with 4 additions and 4 deletions
|
@ -38,7 +38,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
#define OP_DOWNLOAD 1
|
||||
#define OP_COMMAND 2
|
||||
|
|
|
@ -58,7 +58,7 @@ char *locale;
|
|||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
#define MSEC_PER_SEC (1000LL)
|
||||
#define NSEC_PER_MSEC (1000000LL)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include <string>
|
||||
#include <functional>
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
#define COLDBOOT_DONE "/dev/.coldboot_done"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
#define TRUSTY_DEVICE_NAME "/dev/trusty-ipc-dev0"
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
|
||||
#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
|
||||
|
||||
static inline bool is_32bit_aligned(size_t sz)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue