summaryrefslogtreecommitdiff
path: root/pssr.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-17 10:37:30 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-17 10:37:30 -0400
commitb435ce07c880a3e42224071f84999f148f1d96e2 (patch)
treeea9a7ab92f9c72efdc875940bb9c2f18e8da2e9c /pssr.cpp
parent398bda4051fde811eada39cd73a6ae40a3898226 (diff)
downloadcryptopp-git-b435ce07c880a3e42224071f84999f148f1d96e2.tar.gz
Cleared Visual Studio warning on type mismatch in std::bind
Diffstat (limited to 'pssr.cpp')
-rw-r--r--pssr.cpp2
1 files changed, 1 insertions, 1 deletions
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<byte>(), 0));
+ byte *M = std::find_if(representative, salt-1, std::bind2nd(std::not_equal_to<byte>(), byte(0)));
recoverableMessageLength = salt-M-1;
if (*M == 0x01
&& (size_t)(M - representative - (representativeBitLength % 8 != 0)) >= MinPadLen(digestSize)