diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Slice/PythonUtil.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp index a8085dec42f..e00e869c3a5 100644 --- a/cpp/src/Slice/PythonUtil.cpp +++ b/cpp/src/Slice/PythonUtil.cpp @@ -1782,29 +1782,11 @@ Slice::Python::CodeVisitor::writeConstantValue(const TypePtr& type, const string case Slice::Builtin::KindInt: case Slice::Builtin::KindFloat: case Slice::Builtin::KindDouble: - { - _out << value; - break; - } case Slice::Builtin::KindLong: { - IceUtil::Int64 l; - IceUtilInternal::stringToInt64(value, l); - // - // The platform's 'long' type may not be 64 bits, so we store 64-bit - // values as a string. - // - if(sizeof(IceUtil::Int64) > sizeof(long) && (l < LONG_MIN || l > LONG_MAX)) - { - _out << "'" << value << "'"; - } - else - { - _out << value; - } + _out << value; break; } - case Slice::Builtin::KindString: { // @@ -1883,7 +1865,6 @@ Slice::Python::CodeVisitor::writeConstantValue(const TypePtr& type, const string _out << "\""; // Closing " break; } - case Slice::Builtin::KindObject: case Slice::Builtin::KindObjectProxy: case Slice::Builtin::KindLocalObject: |