Cleared UBsan error of "load of value 127, which is not a valid value for type 'bool'" by initializing negateNext

reviewable/pr7/r1
Jeffrey Walton 2015-07-15 17:48:43 -04:00
parent 866fbeb8e4
commit 857d7c84d1
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ template <class Element, class Iterator> Element GeneralCascadeMultiplication(co
struct WindowSlider
{
WindowSlider(const Integer &expIn, bool fastNegate, unsigned int windowSizeIn=0)
: m_exp(expIn), m_windowModulus(Integer::One()), m_windowSize(windowSizeIn), m_windowBegin(0), m_fastNegate(fastNegate), m_firstTime(true), m_finished(false)
: m_exp(expIn), m_windowModulus(Integer::One()), m_windowSize(windowSizeIn), m_windowBegin(0), m_fastNegate(fastNegate), m_negateNext(false), m_firstTime(true), m_finished(false)
{
if (m_windowSize == 0)
{