summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/crypto/zdeflate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/CryptoPP/crypto/zdeflate.cpp')
-rw-r--r--plugins/CryptoPP/crypto/zdeflate.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/CryptoPP/crypto/zdeflate.cpp b/plugins/CryptoPP/crypto/zdeflate.cpp
index e2b60ee109..099226bab8 100644
--- a/plugins/CryptoPP/crypto/zdeflate.cpp
+++ b/plugins/CryptoPP/crypto/zdeflate.cpp
@@ -384,13 +384,7 @@ unsigned int Deflator::LongestMatch(unsigned int &bestMatch) const
if (scan[bestLength-1] == match[bestLength-1] && scan[bestLength] == match[bestLength] && scan[0] == match[0] && scan[1] == match[1])
{
assert(scan[2] == match[2]);
- unsigned int len = (unsigned int)(
-#if defined(_STDEXT_BEGIN) && !(defined(_MSC_VER) && _MSC_VER < 1400) && !defined(_STLPORT_VERSION)
- stdext::unchecked_mismatch
-#else
- std::mismatch
-#endif
- (scan+3, scanEnd, match+3).first - scan);
+ unsigned int len = (unsigned int)(std::mismatch(scan+3, scanEnd, match+3).first - scan);
assert(len != bestLength);
if (len > bestLength)
{