From 6661058d28a34faa53b99e0d013ca6ddf2bf852a Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Fri, 5 Feb 2010 13:47:39 -0800 Subject: bug 4649 - Fix mapping for Python long integer constants --- cpp/src/Slice/PythonUtil.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'cpp/src/Slice/PythonUtil.cpp') 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: -- cgit v1.2.3