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 | bcc71fc695435b1a26392325c216bec845831b48 (patch) | |
| tree | beae6319979dde4b1bf4aceeafcf69921762f693 /qpid/cpp/rubygen | |
| parent | 864fef8c0523cc64be9ef79a0a09e4402c3101b3 (diff) | |
| download | qpid-python-bcc71fc695435b1a26392325c216bec845831b48.tar.gz | |
Fixed calculation of size for frames with str16 fields.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@633833 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen')
| -rw-r--r-- | qpid/cpp/rubygen/99-0/structs.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/rubygen/99-0/structs.rb b/qpid/cpp/rubygen/99-0/structs.rb index 398ca660dd..c04aa38763 100644 --- a/qpid/cpp/rubygen/99-0/structs.rb +++ b/qpid/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 |
