summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/sha1/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceUtil/sha1/Client.cpp')
-rw-r--r--cpp/test/IceUtil/sha1/Client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/test/IceUtil/sha1/Client.cpp b/cpp/test/IceUtil/sha1/Client.cpp
index 62bbb220aeb..1fd53bdd2d0 100644
--- a/cpp/test/IceUtil/sha1/Client.cpp
+++ b/cpp/test/IceUtil/sha1/Client.cpp
@@ -62,8 +62,7 @@ string toHex(const string& data)
{
os.width(2);
os.fill('0');
- unsigned char c = data[i];
- os << hex << (int)c;
+ os << hex << (int)static_cast<unsigned char>(data[i]);
}
return os.str();
}