diff options
author | Chih-Hung Hsieh <chh@google.com> | 2016-09-02 15:28:42 -0700 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2016-09-02 15:28:42 -0700 |
commit | 7c3f7c6a0928577e26dad48601d0a6192d23df0a (patch) | |
tree | ab3056345bd918559e9ce89affc0bbaefd3665ee /src/google/protobuf/api.pb.cc | |
parent | fa6428ed2a2628c874bf65d8fb239f0a6a32bb14 (diff) |
Fix #1955 clang-tidy warning misc-macro-parentheses
clang-tidy gives warning "macro argument should be enclosed in
parentheses" to macro ZR_, the "first" parameter.
Diffstat (limited to 'src/google/protobuf/api.pb.cc')
-rw-r--r-- | src/google/protobuf/api.pb.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/api.pb.cc b/src/google/protobuf/api.pb.cc index cfb30786..e8c2a178 100644 --- a/src/google/protobuf/api.pb.cc +++ b/src/google/protobuf/api.pb.cc @@ -1005,7 +1005,7 @@ void Method::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) |