summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/PythonUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/PythonUtil.cpp')
-rw-r--r--cpp/src/Slice/PythonUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/PythonUtil.cpp b/cpp/src/Slice/PythonUtil.cpp
index c4b3f48726b..1e5d38037bf 100644
--- a/cpp/src/Slice/PythonUtil.cpp
+++ b/cpp/src/Slice/PythonUtil.cpp
@@ -459,7 +459,7 @@ Slice::Python::CodeVisitor::writeOperations(const ClassDefPtr& p)
if((*oli)->hasMarshaledResult())
{
string name = (*oli)->name();
- name[0] = toupper(static_cast<unsigned char>(name[0]));
+ name[0] = static_cast<char>(toupper(static_cast<unsigned char>(name[0])));
_out << sp;
_out << nl << "\"\"\"";
_out << nl << "Immediately marshals the result of an invocation of " << (*oli)->name()