diff options
author | Gordon Sim <gsim@apache.org> | 2008-03-05 12:09:26 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-03-05 12:09:26 +0000 |
commit | 00f2ca6cf33f77e44b94db2701830f8c9bcd794e (patch) | |
tree | 52d82478d47e67c2cb0421fd988c3a66f3260559 /cpp/rubygen | |
parent | 23ba01f8af3971bf49c86d0f7b59e5496e3b97d8 (diff) | |
download | qpid-python-00f2ca6cf33f77e44b94db2701830f8c9bcd794e.tar.gz |
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
Diffstat (limited to 'cpp/rubygen')
-rw-r--r-- | cpp/rubygen/99-0/structs.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |