summaryrefslogtreecommitdiff
path: root/validat3.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-10-03 07:14:43 -0400
committerJeffrey Walton <noloader@gmail.com>2019-10-03 07:14:43 -0400
commit80dc9f7d77d183f4073b1b9675ee86c09bdf6fa3 (patch)
tree1b7b319a69760d17158ec89cbbcf96cdedce7f3a /validat3.cpp
parent6e06c8cbf29ba7085264c69324fb47653c68b175 (diff)
downloadcryptopp-git-80dc9f7d77d183f4073b1b9675ee86c09bdf6fa3.tar.gz
Clear deprecated warnings with early MSVC compilers
Diffstat (limited to 'validat3.cpp')
-rw-r--r--validat3.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/validat3.cpp b/validat3.cpp
index 64370718..153aa37f 100644
--- a/validat3.cpp
+++ b/validat3.cpp
@@ -221,9 +221,8 @@ bool TestSettings()
word32 w;
const byte s[] = "\x01\x02\x03\x04";
-#if (_MSC_VER >= 1500)
- std::copy(s, s+4,
- stdext::make_checked_array_iterator(reinterpret_cast<byte*>(&w), sizeof(w)));
+#if (_MSC_VER >= 1400)
+ memcpy_s(&w, 4, s, 4);
#else
std::copy(s, s+4, reinterpret_cast<byte*>(&w));
#endif