summaryrefslogtreecommitdiff
path: root/cpp/src/slice2objc/ObjCUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2objc/ObjCUtil.cpp')
-rw-r--r--cpp/src/slice2objc/ObjCUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2objc/ObjCUtil.cpp b/cpp/src/slice2objc/ObjCUtil.cpp
index 47bfb1d37b3..1cbe7314c3b 100644
--- a/cpp/src/slice2objc/ObjCUtil.cpp
+++ b/cpp/src/slice2objc/ObjCUtil.cpp
@@ -241,7 +241,7 @@ Slice::ObjCGenerator::getFactoryMethod(const ContainedPtr& p, bool deprecated)
}
else if(deprecated || name.size() < 2 || !isupper(*(name.begin() + 1)))
{
- *name.begin() = tolower(*name.begin());
+ *name.begin() = static_cast<char>(tolower(*name.begin()));
}
else
{
@@ -251,7 +251,7 @@ Slice::ObjCGenerator::getFactoryMethod(const ContainedPtr& p, bool deprecated)
{
break;
}
- *q = tolower(*q);
+ *q = static_cast<char>(tolower(*q));
}
}
return name;