commit | d61ca37d35e31cae52a543e65d3ae02044abe5d3 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Fri Jun 03 10:18:07 2016 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Fri Jun 03 10:18:07 2016 -0700 |
tree | 21c930e08750994a35991697790d61dd16fc4b52 | |
parent | a24cc2639f85d0b0978b18493f4f3bceebbc8ed3 [diff] [blame] |
Fix misc-macro-parentheses warnings in bionic/tests. Bug: 28705665 Change-Id: I532205b94e30acbdc97f3f4db0660c9a16a7de89
diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp index e86d56d..000dc98 100644 --- a/tests/wchar_test.cpp +++ b/tests/wchar_test.cpp
@@ -22,7 +22,7 @@ #include <stdint.h> #include <wchar.h> -#define NUM_WCHARS(num_bytes) (num_bytes/sizeof(wchar_t)) +#define NUM_WCHARS(num_bytes) ((num_bytes)/sizeof(wchar_t)) TEST(wchar, sizeof_wchar_t) { EXPECT_EQ(4U, sizeof(wchar_t));