diff --git a/poly1305.cpp b/poly1305.cpp index 9f3f97aa..354d76c4 100644 --- a/poly1305.cpp +++ b/poly1305.cpp @@ -283,7 +283,7 @@ template void Poly1305_Base::Resynchronize(const byte *nonce, int nonceLength) { CRYPTOPP_ASSERT(nonceLength == -1 || nonceLength == (int)BLOCKSIZE); - nonceLength == -1 ? nonceLength = BLOCKSIZE : nonceLength; + if (nonceLength == -1) { nonceLength = BLOCKSIZE; } // Encrypt the nonce, stash in m_nk m_cipher.ProcessBlock(nonce, m_nk.begin());