From 7c3f7c6a0928577e26dad48601d0a6192d23df0a Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Fri, 2 Sep 2016 15:28:42 -0700 Subject: 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. --- src/google/protobuf/duration.pb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/google/protobuf/duration.pb.cc') diff --git a/src/google/protobuf/duration.pb.cc b/src/google/protobuf/duration.pb.cc index 94ece18e..ed5cca4b 100644 --- a/src/google/protobuf/duration.pb.cc +++ b/src/google/protobuf/duration.pb.cc @@ -185,7 +185,7 @@ void Duration::Clear() { #endif #define ZR_(first, last) do {\ - ::memset(&first, 0,\ + ::memset(&(first), 0,\ ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\ } while (0) -- cgit v1.2.3