diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-01-21 16:25:49 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-01-21 16:25:49 -0500 |
commit | 1df1d25428181e8f3fd688da011ac4bfc0325899 (patch) | |
tree | ab1bab6ae0028a829bf487a129307bc77c2aa9bb /validat4.cpp | |
parent | d6cf3b5020fe9c682ddf6b335e77403111a54c9b (diff) | |
download | cryptopp-git-1df1d25428181e8f3fd688da011ac4bfc0325899.tar.gz |
Cleanup warnings under MSC
Diffstat (limited to 'validat4.cpp')
-rw-r--r-- | validat4.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/validat4.cpp b/validat4.cpp index 9f74b516..70a2e738 100644 --- a/validat4.cpp +++ b/validat4.cpp @@ -32,7 +32,7 @@ #endif
#if CRYPTOPP_MSC_VERSION
-# pragma warning(disable: 4505 4355)
+# pragma warning(disable: 4610 4510 4505 4355)
#endif
NAMESPACE_BEGIN(CryptoPP)
@@ -425,7 +425,7 @@ bool TestCryptoSign() uint64_t s = STDMIN(smlen, (uint64_t)crypto_sign_BYTES);
pass = (s >= crypto_sign_BYTES) && pass;
- fail = std::memcmp(sm, data.sig, s) != 0;
+ fail = std::memcmp(sm, data.sig, (size_t)s) != 0;
pass = !fail && pass;
uint64_t rmlen;
@@ -433,7 +433,7 @@ bool TestCryptoSign() fail = (rc != 0); pass = !fail && pass;
pass = (l == rmlen) && pass;
- fail = std::memcmp(m, rm, STDMIN(l, rmlen)) != 0;
+ fail = std::memcmp(m, rm, (size_t)STDMIN(l, rmlen)) != 0;
pass = !fail && pass;
}
@@ -470,7 +470,7 @@ bool TestCryptoSignKeys() if(mlen && rmlen)
{
pass = (mlen == rmlen) && pass;
- fail = std::memcmp(m, rm, STDMIN(mlen, rmlen)) != 0;
+ fail = std::memcmp(m, rm, (size_t)STDMIN(mlen, rmlen)) != 0;
pass = !fail && pass;
}
|