summaryrefslogtreecommitdiff
path: root/cpp/rubygen/99-0/structs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/rubygen/99-0/structs.rb')
-rw-r--r--cpp/rubygen/99-0/structs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/rubygen/99-0/structs.rb b/cpp/rubygen/99-0/structs.rb
index 58e175af0f..b7d230d528 100644
--- a/cpp/rubygen/99-0/structs.rb
+++ b/cpp/rubygen/99-0/structs.rb
@@ -35,7 +35,7 @@ class StructGen < CppGen
def is_packed(s)
#return true
- s.kind_of?(AmqpStruct) or s.body_name.include?("010")
+ s.kind_of?(AmqpStruct) or s.parent.name.include?("010")
end
def execution_header?(s)