| Index: crypto/third_party/nss/secsign.cc
|
| diff --git a/crypto/third_party/nss/secsign.cc b/crypto/third_party/nss/secsign.cc
|
| index 9272d4a3b5a7b349647ffff723069c2afb724f93..a788defc70410559d0546299802b0a724eaee63f 100644
|
| --- a/crypto/third_party/nss/secsign.cc
|
| +++ b/crypto/third_party/nss/secsign.cc
|
| @@ -93,12 +93,14 @@ SECStatus DerSignData(PLArenaPool *arena,
|
| hash_type, &hash_data[0], input->data, input->len);
|
| if (rv != SECSuccess)
|
| return rv;
|
| - SECItem hash = {siBuffer, &hash_data[0], hash_data.size()};
|
| + SECItem hash = {siBuffer, &hash_data[0],
|
| + static_cast<unsigned int>(hash_data.size())};
|
|
|
| // Compute signature of hash.
|
| int signature_len = PK11_SignatureLen(key);
|
| std::vector<uint8> signature_data(signature_len);
|
| - SECItem sig = {siBuffer, &signature_data[0], signature_len};
|
| + SECItem sig = {siBuffer, &signature_data[0],
|
| + static_cast<unsigned int>(signature_len)};
|
| rv = PK11_Sign(key, &sig, &hash);
|
| if (rv != SECSuccess)
|
| return rv;
|
|
|