summaryrefslogtreecommitdiff
path: root/chacha_avx.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-08-24 22:45:28 -0400
committerGitHub <noreply@github.com>2022-08-24 22:45:28 -0400
commit307ada58d618eb05c89b6e4a6bc55ac4026a7e9a (patch)
treea1418201b1100b0ebbc00b4bfd2e3d8518a2d1e0 /chacha_avx.cpp
parent420d8ca90d12f1fae9684ef3e61cbb0fc81e99e1 (diff)
downloadcryptopp-git-307ada58d618eb05c89b6e4a6bc55ac4026a7e9a.tar.gz
Disable global optimizations for all versions of VS2017 (GH #649, GH #735, PR #1146)
We started seeing failed self test under VS2017 on AppVeyor. See https://ci.appveyor.com/project/noloader/cryptopp/builds/44570276 .
Diffstat (limited to 'chacha_avx.cpp')
-rw-r--r--chacha_avx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chacha_avx.cpp b/chacha_avx.cpp
index 1c6c4d2d..bcb0f21f 100644
--- a/chacha_avx.cpp
+++ b/chacha_avx.cpp
@@ -41,7 +41,7 @@ extern const char CHACHA_AVX_FNAME[] = __FILE__;
// https://github.com/weidai11/cryptopp/issues/735. The
// 649 issue affects AES but it is the same here. The 735
// issue is ChaCha AVX2 cut-in where it surfaced again.
-#if (_MSC_VER >= 1910) && (_MSC_VER < 1916)
+#if (_MSC_VER >= 1910) && (_MSC_VER <= 1916)
# ifndef CRYPTOPP_DEBUG
# pragma optimize("", off)
# pragma optimize("ts", on)