summaryrefslogtreecommitdiff
path: root/integer.h
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2003-03-20 20:39:59 +0000
committerweidai <weidai11@users.noreply.github.com>2003-03-20 20:39:59 +0000
commit6698a186066d6efb239fcfc13f296794b9d7dda2 (patch)
treec85dd5aa14780d400b30c133fa3704b044d1bbb2 /integer.h
parent067b425053134d8d5d44e1ecb8907ea28b985a68 (diff)
downloadcryptopp-git-6698a186066d6efb239fcfc13f296794b9d7dda2.tar.gz
fix warnings for VC7 and GCC
Diffstat (limited to 'integer.h')
-rw-r--r--integer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/integer.h b/integer.h
index b79c07cc..fcf3ebef 100644
--- a/integer.h
+++ b/integer.h
@@ -67,6 +67,9 @@ public:
};
//!
+ enum Sign {POSITIVE=0, NEGATIVE=1};
+
+ //!
enum Signedness {
//!
UNSIGNED,
@@ -92,6 +95,9 @@ public:
//! convert from signed long
Integer(signed long value);
+ //! convert from two words
+ Integer(Sign s, word highWord, word lowWord);
+
//! convert from string
/*! str can be in base 2, 8, 10, or 16. Base is determined by a
case insensitive suffix of 'h', 'o', or 'b'. No suffix means base 10.
@@ -390,8 +396,6 @@ private:
friend void PositiveMultiply(Integer &product, const Integer &a, const Integer &b);
friend void PositiveDivide(Integer &remainder, Integer &quotient, const Integer &dividend, const Integer &divisor);
- enum Sign {POSITIVE=0, NEGATIVE=1};
-
SecAlignedWordBlock reg;
Sign sign;
};