summaryrefslogtreecommitdiff
path: root/tests/string_test.cpp
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-06-03 10:18:07 -0700
committerChih-Hung Hsieh <chh@google.com>2016-06-03 10:18:07 -0700
commitd61ca37d35e31cae52a543e65d3ae02044abe5d3 (patch)
tree21c930e08750994a35991697790d61dd16fc4b52 /tests/string_test.cpp
parenta24cc2639f85d0b0978b18493f4f3bceebbc8ed3 (diff)
Fix misc-macro-parentheses warnings in bionic/tests.
Bug: 28705665 Change-Id: I532205b94e30acbdc97f3f4db0660c9a16a7de89
Diffstat (limited to 'tests/string_test.cpp')
-rw-r--r--tests/string_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/string_test.cpp b/tests/string_test.cpp
index 2a9da10af..763d65cd0 100644
--- a/tests/string_test.cpp
+++ b/tests/string_test.cpp
@@ -40,10 +40,10 @@
#define STRLCAT_SUPPORTED
#endif
-#define KB 1024
-#define SMALL 1*KB
-#define MEDIUM 4*KB
-#define LARGE 64*KB
+constexpr auto KB = 1024;
+constexpr auto SMALL = 1 * KB;
+constexpr auto MEDIUM = 4 * KB;
+constexpr auto LARGE = 64 * KB;
static int signum(int i) {
if (i < 0) {