From 30b706316be78fed7d12eac9881f26697887f18f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 26 Jul 2015 13:56:45 -0400 Subject: [PATCH] Cleared "signed/unsigned" warning introduced by 1997c21b37bf6db7 under GCC. The ultimate fix is to guard the std::streamsize specialization to ensure Microsoft compilers don't see it --- misc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc.h b/misc.h index af08616a..0a2b681e 100644 --- a/misc.h +++ b/misc.h @@ -370,7 +370,8 @@ inline bool SafeConvert(T1 from, T2 &to) return true; } -#ifndef CRYPTOPP_WIN32_AVAILABLE +// MSVC see this as a duplicate specialization +#ifndef _MSC_VER // files.cpp, line 235 template<> inline bool SafeConvert(size_t from, std::streamsize &to)