diff options
Diffstat (limited to 'cpp/rubygen/framing.0-10')
-rw-r--r-- | cpp/rubygen/framing.0-10/structs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/framing.0-10/structs.rb b/cpp/rubygen/framing.0-10/structs.rb index e97b6311a2..e4d57ca75d 100644 --- a/cpp/rubygen/framing.0-10/structs.rb +++ b/cpp/rubygen/framing.0-10/structs.rb @@ -48,7 +48,7 @@ class StructGen < CppGen def default_initialisation(s) params = s.fields.select {|f| ValueTypes.include?(f.cpptype.name) || (!is_packed(s) && f.type_ == "bit")} - strings = params.collect {|f| "#{f.cppname}(0)"} + strings = params.collect {|f| "#{f.cppname}(#{f.default_value})"} strings << "flags(0)" if (is_packed(s)) if strings.empty? return "" |