summaryrefslogtreecommitdiff
path: root/algebra.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-15 17:48:43 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-15 17:48:43 -0400
commit857d7c84d1ec2978a1e92be3412b4a9a63b07c13 (patch)
treeaad7edf93755e7257023826a531193d61cd2a7c3 /algebra.cpp
parent866fbeb8e4b7b71cb5f9c8e5cefbfbb1df4c4d5b (diff)
downloadcryptopp-git-857d7c84d1ec2978a1e92be3412b4a9a63b07c13.tar.gz
Cleared UBsan error of "load of value 127, which is not a valid value for type 'bool'" by initializing negateNext
Diffstat (limited to 'algebra.cpp')
-rw-r--r--algebra.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/algebra.cpp b/algebra.cpp
index 0475e7e9..d46543db 100644
--- a/algebra.cpp
+++ b/algebra.cpp
@@ -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)
{