summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-11-14 10:40:27 +0100
committerJose <jose@zeroc.com>2016-11-14 10:40:27 +0100
commitd2cc84bf38485c8976dc9e464d5c738f65099094 (patch)
treea655268f70ca16444517ccf33c8f2303a44be321 /cpp
parentReplaced non-public double underscores in C++ (diff)
downloadice-d2cc84bf38485c8976dc9e464d5c738f65099094.tar.bz2
ice-d2cc84bf38485c8976dc9e464d5c738f65099094.tar.xz
ice-d2cc84bf38485c8976dc9e464d5c738f65099094.zip
UWP x64 fail to build fix
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/IceSSL/Certificate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceSSL/Certificate.cpp b/cpp/src/IceSSL/Certificate.cpp
index 3f4eb05bed9..c325d51ec24 100755
--- a/cpp/src/IceSSL/Certificate.cpp
+++ b/cpp/src/IceSSL/Certificate.cpp
@@ -1256,7 +1256,7 @@ Certificate::decode(const string& encoding)
vector<unsigned char> data(IceInternal::Base64::decode(string(&encoding[startpos], size)));
auto writer = ref new DataWriter();
- writer->WriteBytes(Platform::ArrayReference<unsigned char>(&data[0], data.size()));
+ writer->WriteBytes(Platform::ArrayReference<unsigned char>(&data[0], static_cast<unsigned int>(data.size())));
return make_shared<Certificate>(ref new Certificates::Certificate(writer->DetachBuffer()));
#else
# error "Unknown platform"