Author: gsim
Date: Wed Mar  5 04:09:26 2008
New Revision: 633833

URL: http://svn.apache.org/viewvc?rev=633833&view=rev
Log:
Fixed calculation of size for frames with str16 fields.


Modified:
    incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb

Modified: incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb
URL: 
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb?rev=633833&r1=633832&r2=633833&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb (original)
+++ incubator/qpid/trunk/qpid/cpp/rubygen/99-0/structs.rb Wed Mar  5 04:09:26 
2008
@@ -150,6 +150,7 @@
         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


Reply via email to