diff options
author | Mark Spruiell <mes@zeroc.com> | 2010-02-05 13:47:39 -0800 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2010-02-05 13:47:39 -0800 |
commit | 6661058d28a34faa53b99e0d013ca6ddf2bf852a (patch) | |
tree | 11f9c5cff0f49a91bb1fc4a427d846fd8121a78f /cpp/src/Slice/PythonUtil.cpp | |
parent | bug 4650 - Slice default values (diff) | |
download | ice-6661058d28a34faa53b99e0d013ca6ddf2bf852a.tar.bz2 ice-6661058d28a34faa53b99e0d013ca6ddf2bf852a.tar.xz ice-6661058d28a34faa53b99e0d013ca6ddf2bf852a.zip |
bug 4649 - Fix mapping for Python long integer constants
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-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: |