From 00f2ca6cf33f77e44b94db2701830f8c9bcd794e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 5 Mar 2008 12:09:26 +0000 Subject: Fixed calculation of size for frames with str16 fields. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@633833 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/rubygen/99-0/structs.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/rubygen') diff --git a/cpp/rubygen/99-0/structs.rb b/cpp/rubygen/99-0/structs.rb index 398ca660dd..c04aa38763 100644 --- a/cpp/rubygen/99-0/structs.rb +++ b/cpp/rubygen/99-0/structs.rb @@ -150,6 +150,7 @@ class StructGen < CppGen encoded = EncodingMap[f.domain.type_] gen "total += (" gen "4 + " if encoded == "LongString" + gen "2 + " if encoded == "MediumString" gen "1 + " if encoded == "ShortString" genl "#{f.cppname}.size());" end -- cgit v1.2.1