Cleared Visual Studio warning on type mismatch in std::bind
parent
398bda4051
commit
b435ce07c8
2
pssr.cpp
2
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue