From 1124a3d1fe8ac0c59acaf75f087ee4bd44a8b0bf Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 3 Jun 2021 22:10:54 -0400 Subject: [PATCH] Clear MSVC warning --- strciphr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strciphr.h b/strciphr.h index b6a6a73c..5df2fe72 100644 --- a/strciphr.h +++ b/strciphr.h @@ -251,7 +251,7 @@ struct CRYPTOPP_NO_VTABLE AdditiveCipherConcretePolicy : public BASE /// \param i index in output buffer /// \param a value to output #define CRYPTOPP_KEYSTREAM_OUTPUT_WORD(x, b, i, a) \ - PutWord(bool(x & OUTPUT_ALIGNED), b, output+i*sizeof(WordType), (x & INPUT_NULL) ? (a) : (a) ^ GetWord(bool(x & INPUT_ALIGNED), b, input+i*sizeof(WordType))); + PutWord(((x & OUTPUT_ALIGNED) != 0), b, output+i*sizeof(WordType), (x & INPUT_NULL) ? (a) : (a) ^ GetWord(((x & INPUT_ALIGNED) != 0), b, input+i*sizeof(WordType))); /// \brief Helper macro to implement OperateKeystream /// \param x KeystreamOperation mask