From b435ce07c880a3e42224071f84999f148f1d96e2 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 17 Jul 2015 10:37:30 -0400 Subject: Cleared Visual Studio warning on type mismatch in std::bind --- pssr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pssr.cpp') diff --git a/pssr.cpp b/pssr.cpp index ccbe4ee2..2220a9b6 100644 --- a/pssr.cpp +++ b/pssr.cpp @@ -110,7 +110,7 @@ DecodingResult PSSR_MEM_Base::RecoverMessageFromRepresentative( // extract salt and recoverableMessage from DB = 00 ... || 01 || M || salt byte *salt = representative + representativeByteLength - u - digestSize - saltSize; - byte *M = std::find_if(representative, salt-1, std::bind2nd(std::not_equal_to(), 0)); + byte *M = std::find_if(representative, salt-1, std::bind2nd(std::not_equal_to(), byte(0))); recoverableMessageLength = salt-M-1; if (*M == 0x01 && (size_t)(M - representative - (representativeBitLength % 8 != 0)) >= MinPadLen(digestSize) -- cgit v1.2.1