summaryrefslogtreecommitdiff
path: root/modarith.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-23 19:17:07 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-23 19:17:07 -0400
commite87857f67de99e53d1fc9d00a794ea491eeadfdf (patch)
tree5ea8e254d7b6bf42ae9bf51d777aea2d92205045 /modarith.h
parent5bb0e6fd38beebdded2992d871929ebde94eaff8 (diff)
downloadcryptopp-git-e87857f67de99e53d1fc9d00a794ea491eeadfdf.tar.gz
Cleared "missing initialization in copy constructor" warning with GCC 5.1 and -Wextra
Diffstat (limited to 'modarith.h')
-rw-r--r--modarith.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modarith.h b/modarith.h
index c0368e3f..0911f027 100644
--- a/modarith.h
+++ b/modarith.h
@@ -24,10 +24,10 @@ public:
typedef Integer Element;
ModularArithmetic(const Integer &modulus = Integer::One())
- : m_modulus(modulus), m_result((word)0, modulus.reg.size()) {}
+ : m_modulus(modulus), m_result((word)0, modulus.reg.size()), m_result1(Integer::Zero()) {}
ModularArithmetic(const ModularArithmetic &ma)
- : m_modulus(ma.m_modulus), m_result((word)0, m_modulus.reg.size()) {}
+ : AbstractRing<Integer>(ma), m_modulus(ma.m_modulus), m_result((word)0, m_modulus.reg.size()), m_result1(Integer::Zero()) {}
ModularArithmetic(BufferedTransformation &bt); // construct from BER encoded parameters