fix Integer::Encode

import/raw
weidai 2006-03-17 00:38:11 +00:00
parent cafc0c242d
commit 9884308dad
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}