Commit 0dead6ca authored by yzshen@chromium.org's avatar yzshen@chromium.org

Mojo cpp bindings: fix |num_fields| in struct header of *Params_Data.

BUG=None
TEST=None

Review URL: https://codereview.chromium.org/291773002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271352 0039d316-1c4b-4281-b951-d872f2087c98
parent 7326c2ad
...@@ -32,7 +32,7 @@ class {{class_name}} { ...@@ -32,7 +32,7 @@ class {{class_name}} {
private: private:
{{class_name}}() { {{class_name}}() {
_header_.num_bytes = sizeof(*this); _header_.num_bytes = sizeof(*this);
_header_.num_fields = 3; _header_.num_fields = {{struct.packed.packed_fields|length}};
} }
mojo::internal::StructHeader _header_; mojo::internal::StructHeader _header_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment