diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-17 00:38:11 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2006-03-17 00:38:11 +0000 |
commit | 4c4b05b70d06e818417f6b4f879183a2f233c91b (patch) | |
tree | 83c2905d8bd12d3bf43b31981e08fe4496dbe715 | |
parent | 864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c (diff) | |
download | cryptopp-4c4b05b70d06e818417f6b4f879183a2f233c91b.tar.gz |
fix Integer::Encode
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@218 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | integer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integer.cpp b/integer.cpp index ca74190..8a7767e 100644 --- a/integer.cpp +++ b/integer.cpp @@ -3111,7 +3111,7 @@ void Integer::Encode(BufferedTransformation &bt, size_t outputLen, Signedness si else { // take two's complement of *this - Integer temp = Integer::Power2(8*UnsignedMin(ByteCount(), outputLen)) + *this; + Integer temp = Integer::Power2(8*STDMAX((size_t)ByteCount(), outputLen)) + *this; temp.Encode(bt, outputLen, UNSIGNED); } } |