summaryrefslogtreecommitdiffstats
path: root/src/macros.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-10-17 18:56:41 -0700
committerElliott Hughes <enh@google.com>2011-10-17 20:26:54 -0700
commit362f9bc807169bcfc8761dde067bbfb79b5ad0fd (patch)
tree100689aa13a39913b43cb12780ba472897cd665a /src/macros.h
parentfc86162ce2a3467acb690e18cc8bd9b3daafc606 (diff)
downloadart-362f9bc807169bcfc8761dde067bbfb79b5ad0fd.zip
art-362f9bc807169bcfc8761dde067bbfb79b5ad0fd.tar.gz
art-362f9bc807169bcfc8761dde067bbfb79b5ad0fd.tar.bz2
Fix cpplint's whitespace warnings.
Change-Id: I16b69d773e59b49e8e30227b5aa5cb1959a8930f
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/macros.h b/src/macros.h
index f016f9e..88c2416 100644
--- a/src/macros.h
+++ b/src/macros.h
@@ -110,15 +110,12 @@ char (&ArraySizeHelper(T (&array)[N]))[N];
// where a pointer is 4 bytes, this means all pointers to a type whose
// size is 3 or greater than 4 will be (righteously) rejected.
#define ARRAYSIZE_UNSAFE(a) \
- ((sizeof(a) / sizeof(*(a))) / \
- static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
+ ((sizeof(a) / sizeof(*(a))) / static_cast<size_t>(!(sizeof(a) % sizeof(*(a)))))
#define SIZEOF_MEMBER(t, f) sizeof(((t*) 4096)->f)
-#define OFFSETOF_MEMBER(t, f) \
- (reinterpret_cast<char*>( \
- &reinterpret_cast<t*>(16)->f) - \
- reinterpret_cast<char*>(16))
+#define OFFSETOF_MEMBER(t, f) \
+ (reinterpret_cast<char*>(&reinterpret_cast<t*>(16)->f) - reinterpret_cast<char*>(16))
#define OFFSETOF_VOLATILE_MEMBER(t, f) \
(reinterpret_cast<volatile char*>(&reinterpret_cast<t*>(16)->f) - reinterpret_cast<volatile char*>(16))