summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-03-17 00:38:11 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2006-03-17 00:38:11 +0000
commit4c4b05b70d06e818417f6b4f879183a2f233c91b (patch)
tree83c2905d8bd12d3bf43b31981e08fe4496dbe715 /integer.cpp
parent864f7a0ceb89bd28b842ec5e0d0ed6abf112be9c (diff)
downloadcryptopp-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
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp2
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);
}
}