diff options
author | David Garcia Quintas <dgq@google.com> | 2016-06-07 16:24:17 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-06-07 16:24:17 -0700 |
commit | 30fb536053c549aa2a8507a2a0bcd238bda607dd (patch) | |
tree | 1e70b6e4bca6a06fa3edb7824585eee94d9dc0e6 | |
parent | 55c08f81cff3d8231d4ae18b2a8f9e4abccc2d76 (diff) |
PR comments (offline).
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index a9e5978b43..770ef79290 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -202,8 +202,10 @@ class CallOpSendInitialMetadata { op->reserved = NULL; op->data.send_initial_metadata.count = initial_metadata_count_; op->data.send_initial_metadata.metadata = initial_metadata_; - memcpy(&op->data.send_initial_metadata.maybe_compression_level, - &maybe_compression_level_, sizeof(maybe_compression_level_)); + op->data.send_initial_metadata.maybe_compression_level.is_set = + maybe_compression_level_.is_set; + op->data.send_initial_metadata.maybe_compression_level.level = + maybe_compression_level_.level; } void FinishOp(bool* status, int max_message_size) { if (!send_) return; |