summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2008-10-30 13:58:03 -0230
committerDwayne Boone <dwayne@zeroc.com>2008-10-30 13:58:03 -0230
commit07de2f5bc3a42b00812b1e5677548cbd45f6f203 (patch)
treec555541f713f9412f4a88995e300f22f8d23aba2 /cpp/src/slice2java/Gen.cpp
parentBug 3380 - windows release build broken (diff)
downloadice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.bz2
ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.tar.xz
ice-07de2f5bc3a42b00812b1e5677548cbd45f6f203.zip
Bug 3519 - fix isalpha, isprint, ... usage
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index 974d0b6e647..e8f7145afc3 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -2670,7 +2670,7 @@ Slice::Gen::TypesVisitor::visitDataMember(const DataMemberPtr& p)
if(p->hasMetaData(_getSetMetaData) || contained->hasMetaData(_getSetMetaData))
{
string capName = p->name();
- capName[0] = toupper(capName[0]);
+ capName[0] = toupper(static_cast<unsigned char>(capName[0]));
//
// If container is a class, get all of its operations so that we can check for conflicts.
@@ -3057,7 +3057,7 @@ Slice::Gen::TypesVisitor::visitConst(const ConstPtr& p)
const string val = p->value();
for(string::const_iterator c = val.begin(); c != val.end(); ++c)
{
- if(isascii(*c) && isprint(*c))
+ if(isascii(static_cast<unsigned char>(*c)) && isprint(static_cast<unsigned char>(*c)))
{
switch(*c)
{