diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-05-24 22:26:55 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-05-24 22:26:55 +0000 |
commit | 7e40295f7159647ac4a9b0c59f45c215cc8fe473 (patch) | |
tree | 128726a4981d6d70197a2ae8908b55d0b7672c31 /cpp/src | |
parent | fixed license (diff) | |
download | ice-7e40295f7159647ac4a9b0c59f45c215cc8fe473.tar.bz2 ice-7e40295f7159647ac4a9b0c59f45c215cc8fe473.tar.xz ice-7e40295f7159647ac4a9b0c59f45c215cc8fe473.zip |
bug fix in minWireSize for Sequence, Dictionary
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp index 10b62ce9a86..20b4f2aeb21 100644 --- a/cpp/src/Slice/Parser.cpp +++ b/cpp/src/Slice/Parser.cpp @@ -3201,7 +3201,7 @@ Slice::Sequence::usesClasses() const size_t Slice::Sequence::minWireSize() const { - return _type->minWireSize(); + return 1; // An empty sequence. } bool @@ -3295,7 +3295,7 @@ Slice::Dictionary::usesClasses() const size_t Slice::Dictionary::minWireSize() const { - return _keyType->minWireSize() + _valueType->minWireSize(); + return 1; // An empty dictionary. } bool |