diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-05-08 13:48:51 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-05-08 13:48:51 -0230 |
commit | cdc0f62f4fe737454bbb96031695415c4f9be406 (patch) | |
tree | ec007ba67d4f0e579becf7c7709137a619b5de8d /cpp/src/Slice/PythonUtil.cpp | |
parent | Bug 3966 - deadlock in LocatorInfo (diff) | |
download | ice-cdc0f62f4fe737454bbb96031695415c4f9be406.tar.bz2 ice-cdc0f62f4fe737454bbb96031695415c4f9be406.tar.xz ice-cdc0f62f4fe737454bbb96031695415c4f9be406.zip |
Bug 3409 - add sequence checking to ruby/python
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index 08a1366c68a..67fdd424431 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -1235,11 +1235,21 @@ Slice::Python::CodeVisitor::visitSequence(const SequencePtr& p) } else { + TypePtr type = p->type(); _out << nl << "_M_" << getAbsolute(p, "_t_") << " = IcePy.defineSequence('" << scoped << "', "; writeMetaData(metaData); _out << ", "; writeType(p->type()); - _out << ")"; + _out << ", "; + if(type->isVariableLength()) + { + _out << "True"; + } + else + { + _out << "False"; + } + _out << ", " << type->minWireSize() << ")"; } _out.dec(); } |